GeeksforGeeks
19.1K subscribers
1.66K photos
34 videos
24 files
2.63K links
Official Hub βœ…

Your coding haven – where tech meets simplicity.

Discover:
πŸ˜‚ Coding Laughter
πŸ“˜ Curated Study Material
πŸ’Ž Exclusive Offers

Utilize every service we provide and make a promise to find better opportunities for yourself! #gfgkarlohojayega!
Download Telegram
Must Do-DSA Topics: Day 4

Matrix: A matrix represents a collection of numbers arranged in an order of rows and columns. It is necessary to enclose the elements of a matrix in parentheses or brackets. To understand this concept: https://bit.ly/3CiLrRB

Subarray: A subarray is a contiguous part of an array, i.e., a Subarray is an array that is inside another array. In general, for an array of size n, there are n*(n+1)/2 non-empty subarrays. Find problems based on the difficult levels here: https://bit.ly/3rpXmXj

Subset: If a Set has all its elements belonging to other sets, this set will be known as a subset of the other set. A Subset is denoted as β€œβŠ†β€œ. If set A is a subset of set B, it is represented as A βŠ† B. Find problems based on the difficult levels here: https://bit.ly/3rpXmXj

Find more topics of arrays and problems associated with it here: https://bit.ly/3UNBGBW
πŸ‘6
"Problem of the Day"                                                     
                                                     
Solve this question to get points.

Given a boolean 2D matrix grid of size n * m. You have to find the number of distinct islands where a group of connected 1s (horizontally or vertically) forms an island.

Full Problem: https://practice.geeksforgeeks.org/problems/number-of-distinct-islands/1
πŸ‘5
🚨Get ready for 7 days of LIVE learning with the best-in-industry mentors!

Register for 1, or register for them all πŸ€‘ . We bring Free learning for you all-

System Design Mock Interview: https://bit.ly/3SI796O

Must Know Concepts of SpringBoot: https://bit.ly/3fyNyrA

SDE Preparation in 4 Hours: https://bit.ly/3UN9v6p

How is CP helping in SDE Roles: https://bit.ly/3LYJ9tV

GATE Preparation Strategy: https://bit.ly/3BZECD1

Building an E-Commerce App using React: https://bit.ly/3LWICZs

IMDB Data Analysis and Movie Recommendations: https://bit.ly/3LZ6hbV
.
.
And don't forget to share with your friends who might benefit from this! 🀝
πŸ”₯7πŸ‘1
Hey Geeks, πŸ€“

In our Must Do-DSA Topics module, we covered Arrays in the previous week.

We hope you've learned the concepts and practiced with the practice problems.

Here you can find every topic that we'll be covering every week: https://bit.ly/3fykVe8
πŸ‘2
Must Do-DSA Topics: Day 5

Searching: The process of finding the desired information from the set of items stored in the form of elements in the computer memory is referred to as 'searching in data structure'.

Find the element that appears once:
Let’s understand this problem where all numbers occur twice except one number which occurs once in a given array.

We will be using two approaches, learn both these approaches: https://bit.ly/3Ebi9FP

Equilibrium index of an array:
The equilibrium index of an array is an index such that the sum of elements at lower indexes is equal to the sum of elements at higher indexes.

Given a sequence arr[] of size n, Write a function int equilibrium(int[] arr, int n) that returns an equilibrium index (if any) or -1 if no equilibrium index exists.

To delve more into it: https://bit.ly/3UQr0Tn

You can find more here: https://bit.ly/3UNBGBW
πŸ‘2
You ordered, we agreed! πŸ™Œ

From now on, we won't trouble you with unimportant notifications. 🫣

All we want from you is to turn on channel notifications, so you don't miss out on the important ones.βœ…
πŸ‘16
"Problem of the Day"

Solve this question to get points.

The task is to count all the possible paths from the top left to the bottom right of a m X n matrix with the constraints that from each cell you can either move only to the right or down.

Full Problem: https://bit.ly/3rsdec1
Must Do-DSA Topics: Day 6

Leaders in an array: Write a program to print all the LEADERS in the array. An element is a leader if it is greater than all the elements to its right side. And the rightmost element is always a leader. We’ll be solving these approaches using the different approaches.

To understand more in detail: https://bit.ly/3fI5ik7

Ceiling in a sorted array: Given a sorted array and a value x, the ceiling of x is the smallest element in an array greater than or equal to x, and the floor is the greatest element smaller than or equal to x. Assume that the array is sorted in non-decreasing order. Here we have to write efficient functions to find the floor and ceiling of x.

We will be using two approaches:

Approach 1: Linear Search

Approach 2: Binary Search

Find these approaches in detail: https://bit.ly/3e4MRpu

You can find more problems here: https://bit.ly/3UNBGBW
πŸ‘7πŸ”₯1
Must Do-DSA Topics: Day 7

Two Pointers Technique: Two pointers is really an easy and effective technique that is typically used for searching pairs in a sorted array. The algorithm basically uses the fact that the input array is sorted. We start the sum of extreme values (smallest and largest) and conditionally move both pointers.

Understand the Two Pointers Technique: https://bit.ly/3fJTCNL

Find the peak elements: Here you are given an array arr[] of integers, where you have to find a peak element i.e. an element that is not smaller than its neighbors.

Note: For corner elements, we need to consider only one neighbor.

We’ll be using the below approaches:

1) Naive Approach
2) Find a peak element using recursive Binary Search
3) Find a peak element using iterative Binary search

To delve into it: https://bit.ly/3e5fwuK

You can find more problems to understand Searching more here: https://bit.ly/3UNBGBW
πŸ”₯4πŸ‘1
"Problem of the Day"

Solve this question to get points.

Given a string S consisting of only lowercase characters. Find the lexicographically smallest string after removing exactly k characters from the string.

Full Problem: https://bit.ly/3RAU3qZ
πŸ‘2
Must Do-DSA Topics: Day 8

Find a fixed point in a given array: Fixed Point in an array is an index i such that arr[i] is equal to i. Now you are Given an array of n distinct integers sorted in ascending order, and you have to write a function that returns a Fixed Point in the array, if there is any Fixed Point present in array, else returns -1.

We will be understanding this problem using the below approaches:

1) Linear Search
2) Binary Search

To delve into this, check now: https://bit.ly/3Ej4pZB

Find all triplets with zero-sum: Here the task is to find triplets in the array whose sum is zero when you are given an array of distinct elements.

We will be using the naive approach here with-

1) Find all triplets with zero-sum using Hashing
2) Find all triplets with zero-sum using Sorting


To get a deep understanding, check this: https://bit.ly/3rALstS

You can find more problems to understand searching more here: https://bit.ly/3UNBGBW
πŸ‘7
Guess the right answer and take home exclusive rewards! 🀩

All you need to do is solve the murder mystery and find out who's the killer. πŸ”ͺ

Happening on Discord. βœ…

Participate Now: https://discord.gg/pjHTwrtQ

P.S. Don't forget to check out #gfg-contest channel.
"Problem of the Day"                                                     
                                                     
Solve this question to get points.

Ishaan has been given a task by his teacher. He needs to find the Nth term of a series.

Full Problem: https://practice.geeksforgeeks.org/problems/help-ishaan5837/1
πŸ‘3