"Problem of the Day"
Solve this question to get points.
Geek has a string Sof size Nconsisting of characters from '0'to '9'. He wants to minimise the length of the string.
Full Problem: https://bit.ly/3C0Lp0C
Solve this question to get points.
Geek has a string Sof size Nconsisting of characters from '0'to '9'. He wants to minimise the length of the string.
Full Problem: https://bit.ly/3C0Lp0C
practice.geeksforgeeks.org
Reverse a String | Practice | GeeksforGeeks
You are given a string s. You need to reverse the string.
Example 1:
Input:
s = Geeks
Output: skeeG
Example 2:
Input:
s = for
Output: rof
Your Task:
You only need to complete the function reverseWord() that takes s as para
Example 1:
Input:
s = Geeks
Output: skeeG
Example 2:
Input:
s = for
Output: rof
Your Task:
You only need to complete the function reverseWord() that takes s as para
π5
So what do you think a resume requires, to grab the attention of any recruiter?
In every resume out there, you will find skills, relevant experience, and education, but what does it take to stand out from others? Well, this article is surely going to help you with it.
Here, we have listed down the best resume tips you must consider.
Check the article now: https://bit.ly/3xNqGux
In every resume out there, you will find skills, relevant experience, and education, but what does it take to stand out from others? Well, this article is surely going to help you with it.
Here, we have listed down the best resume tips you must consider.
Check the article now: https://bit.ly/3xNqGux
Hey GEEK ARMY, π€©
We are back with our 04th contest of CODE FESTA CHALLENGE.
Some Rules To Follow:
β This is the 2nd of the fourth contest
β The result will be calculated after the completion of all 4 contests every week and taking the average of all 4 contest ranks.
β It is a must to participate in all 4 contests to be eligible for rewards.
β The result will be calculated according to the number of questions solved in 40 minutes during the event timeline.
β This is a timed contest. Do not press back during this time as your responses will not be considered.
β If two people solve the same number of questions then the person who submitted earlier will on top.
β You will get only one chance to submit your response.
β Copying of solutions is strictly prohibited.
Starting from Today at Midnight! π
To stay updated click on the below link
CLICK HERE: https://discord.gg/NdGvxyHG?event=1017395675606044672
We are back with our 04th contest of CODE FESTA CHALLENGE.
Some Rules To Follow:
β This is the 2nd of the fourth contest
β The result will be calculated after the completion of all 4 contests every week and taking the average of all 4 contest ranks.
β It is a must to participate in all 4 contests to be eligible for rewards.
β The result will be calculated according to the number of questions solved in 40 minutes during the event timeline.
β This is a timed contest. Do not press back during this time as your responses will not be considered.
β If two people solve the same number of questions then the person who submitted earlier will on top.
β You will get only one chance to submit your response.
β Copying of solutions is strictly prohibited.
Starting from Today at Midnight! π
To stay updated click on the below link
CLICK HERE: https://discord.gg/NdGvxyHG?event=1017395675606044672
π1
"Problem of the Day"
Solve this question to get points.
Two players, Player 1 and Player 2, are given an integer N to play a game. The rules of the game are as follows π΄
Full Problem: https://bit.ly/3UBqAAc
Solve this question to get points.
Two players, Player 1 and Player 2, are given an integer N to play a game. The rules of the game are as follows π΄
Full Problem: https://bit.ly/3UBqAAc
practice.geeksforgeeks.org
The Bit Game | Practice | GeeksforGeeks
Two players, Player 1 and Player 2, are given an integer N to play a game. The rules of the game are as follows :
1. In one turn, a player can swap any 2 bits of N in its binary representation to make a new N.
2. In one turn, a player has to make a
1. In one turn, a player can swap any 2 bits of N in its binary representation to make a new N.
2. In one turn, a player has to make a
π1
Time for a self-evaluation! π
Know if you're placement ready with the Placement Assessment Test,β from 24th Sept to 25th Sept.
Also, stand a chance to get a scholarship on our Complete Interview Preparation course. π€©
To know more in detail and Participate Now: https://bit.ly/3r99cVC
Know if you're placement ready with the Placement Assessment Test,β from 24th Sept to 25th Sept.
Also, stand a chance to get a scholarship on our Complete Interview Preparation course. π€©
To know more in detail and Participate Now: https://bit.ly/3r99cVC
π3
"Problem of the Day"
Solve this question to get points.
You are given a matrix of dimension n*n. All the cells are initially, zero. You are given Q queries, which contains 4 integers a b c d where (a,b) is the TOP LEFT cell and (c,d) is the Bottom Right cell of a submatrix
Full Problem: https://bit.ly/3UNZkyu
Solve this question to get points.
You are given a matrix of dimension n*n. All the cells are initially, zero. You are given Q queries, which contains 4 integers a b c d where (a,b) is the TOP LEFT cell and (c,d) is the Bottom Right cell of a submatrix
Full Problem: https://bit.ly/3UNZkyu
practice.geeksforgeeks.org
Queries on a Matrix | Practice | GeeksforGeeks
You are given a matrix of dimension n*n. All the cells are initially, zero. You are given Q queries, which contains 4 integers a b c d where (a,b) is the TOP LEFT cell and (c,d) is the Bottom Right cell of a submatrix. Now, all the cel
π3β€1
Hey Geeks, π
We really hope that our "Introduction to Programming Languages" module helped you in starting your journey.
Now, get ready to go from basics to advanced with our "Must Do-DSA Topics" module, specially curated for beginners. π€©
You can find all the details in this pdf like from which date πwe are going to start this module and which topic will be covered.
Don't forget to share it with your mates.π€
To know in detail about the module: https://bit.ly/3BBgUNg
We really hope that our "Introduction to Programming Languages" module helped you in starting your journey.
Now, get ready to go from basics to advanced with our "Must Do-DSA Topics" module, specially curated for beginners. π€©
You can find all the details in this pdf like from which date πwe are going to start this module and which topic will be covered.
Don't forget to share it with your mates.π€
To know in detail about the module: https://bit.ly/3BBgUNg
π22π₯1
"Problem of the Day"
Solve this question to get points.
Tom and Jerry being bored in this pandemic, decides to play a game. Given an integer N.
Full Problem: https://practice.geeksforgeeks.org/problems/tom-and-jerry1325/1
Solve this question to get points.
Tom and Jerry being bored in this pandemic, decides to play a game. Given an integer N.
Full Problem: https://practice.geeksforgeeks.org/problems/tom-and-jerry1325/1
practice.geeksforgeeks.org
Tom and Jerry | Practice | GeeksforGeeks
Tom and Jerry being bored in this pandemic, decides to play a game. Given an integer N. On each player's turn, that player makes a move by subtracting a divisor of current N (which is less than N) from current N, thus forming
π7
Day 1: Introduction to Arrays
An array is a collection of items of the same data type stored at contiguous memory locations. For simplicity, we can think of an array as a fleet of stairs where on each step is placed a value.
There are three types of indexing in arrays:
1) 0 (zero-based indexing)
2) 1 (one-based indexing)
3) n (N-based indexing)
Types of arrays :
1) One-dimensional array (1-D arrays)
2) Multidimensional array
To learn more about how arrays are initialized, and different operations on arrays, the advantages & disadvantages of Arrays: https://bit.ly/3rqJlZP
To delve more into Arrays, do check these out:
Arrays in C/ C++: https://bit.ly/3SA0Z8I
Arrays in Java: https://bit.ly/3xlOfKD
Arrays in Python: https://bit.ly/3RiI55g
Arrays in C#: https://bit.ly/3C794MS
Go through these topics, we'll be providing the practice problems associated with these topics real soon.
An array is a collection of items of the same data type stored at contiguous memory locations. For simplicity, we can think of an array as a fleet of stairs where on each step is placed a value.
There are three types of indexing in arrays:
1) 0 (zero-based indexing)
2) 1 (one-based indexing)
3) n (N-based indexing)
Types of arrays :
1) One-dimensional array (1-D arrays)
2) Multidimensional array
To learn more about how arrays are initialized, and different operations on arrays, the advantages & disadvantages of Arrays: https://bit.ly/3rqJlZP
To delve more into Arrays, do check these out:
Arrays in C/ C++: https://bit.ly/3SA0Z8I
Arrays in Java: https://bit.ly/3xlOfKD
Arrays in Python: https://bit.ly/3RiI55g
Arrays in C#: https://bit.ly/3C794MS
Go through these topics, we'll be providing the practice problems associated with these topics real soon.
π32π₯6β€4π4
"Problem of the Day"
Solve this question to get points.
There are given N ropes of different lengths, we need to connect these ropes into one rope.
Full Problem: https://bit.ly/3dJa0h9
Solve this question to get points.
There are given N ropes of different lengths, we need to connect these ropes into one rope.
Full Problem: https://bit.ly/3dJa0h9
practice.geeksforgeeks.org
Minimum Cost of ropes | Practice | GeeksforGeeks
There are given N ropes of different lengths, we need to connect these ropes into one rope. The cost to connect two ropes is equal to sum of their lengths. The task is to connect the ropes with minimum cost. Given N size array arr[] contain
Must Do-DSA Topics - Day 2
Arrays Rotation: The rotation of arrays simply means to shift the array elements to the specified positions.
Letβs understand this concept with the problem using two approaches.
Given an array of integers arr[] of size N and an integer, the task is to rotate the array elements to the left by d positions.
To delve into this concept and approaches used: https://bit.ly/3BMSK2y
To practice more, check these out.
Problem 2: Program to cyclically rotate an array by one: https://bit.ly/3C9RJD0
Arrangement Rearrangement: If youβve given an array of elements of length N, ranging from 0 to N β 1. All elements may not be present in the array. If the element is not present then there will be -1 present in the array.
Find the full problem here: https://bit.ly/3xUQVPR
To practice more,
Problem2: Rearrange positive and negative numbers with constant extra space: https://bit.ly/3LPDR3V
You can find more of these problems to understand and practice here: https://bit.ly/3xW4kqU
Arrays Rotation: The rotation of arrays simply means to shift the array elements to the specified positions.
Letβs understand this concept with the problem using two approaches.
Given an array of integers arr[] of size N and an integer, the task is to rotate the array elements to the left by d positions.
To delve into this concept and approaches used: https://bit.ly/3BMSK2y
To practice more, check these out.
Problem 2: Program to cyclically rotate an array by one: https://bit.ly/3C9RJD0
Arrangement Rearrangement: If youβve given an array of elements of length N, ranging from 0 to N β 1. All elements may not be present in the array. If the element is not present then there will be -1 present in the array.
Find the full problem here: https://bit.ly/3xUQVPR
To practice more,
Problem2: Rearrange positive and negative numbers with constant extra space: https://bit.ly/3LPDR3V
You can find more of these problems to understand and practice here: https://bit.ly/3xW4kqU
π14π1
"Problem of the Day"
Solve this question to get points.
Geek is playing an array game. He is weak in the concepts of arrays. Geek is given two arrays arr[ ] and brr[ ] of the same size n.
Full Problem: https://bit.ly/3LPLeZp
Solve this question to get points.
Geek is playing an array game. He is weak in the concepts of arrays. Geek is given two arrays arr[ ] and brr[ ] of the same size n.
Full Problem: https://bit.ly/3LPLeZp
practice.geeksforgeeks.org
Fitting The Array | Practice | GeeksforGeeks
Geek is playing an array game. He is weak in the concepts of arrays. Geek is given two arrays arr[ ] and brr[ ] of the same size n. The array arr[ ] will be said to fit in array brr[ ] if by arranging the elements of both arrays, there exists a solut
π6
Must Do-DSA Topics: Day 3
Order Statistics: An order statistic tree is a variant of the binary search tree (or more generally, a B-tree) that supports two additional operations beyond insertion, lookup, and deletion.
Letβs understand this concept by finding the K'th smallest/largest element in an unsorted array. Given that all array elements are distinct.
Find the implementation of the approach here: https://bit.ly/3SooxxU
Practice more with:
Kβth Smallest/Largest Element using STL: https://bit.ly/3rbHebZ
Range Queries:
MOβs algorithm: The idea of MOβs algorithm is to pre-process all queries so that result of one query can be used in the next query.
To delve into this concept, letβs look into this problem with given an array and a set of query ranges: https://bit.ly/3SjUM15
Sparse Table: It is used for fast queries on a set of static data. Understand it with a practice problem: https://bit.ly/3y0BTrX
You can find more of these practice problems here: https://bit.ly/3UNBGBW
Order Statistics: An order statistic tree is a variant of the binary search tree (or more generally, a B-tree) that supports two additional operations beyond insertion, lookup, and deletion.
Letβs understand this concept by finding the K'th smallest/largest element in an unsorted array. Given that all array elements are distinct.
Find the implementation of the approach here: https://bit.ly/3SooxxU
Practice more with:
Kβth Smallest/Largest Element using STL: https://bit.ly/3rbHebZ
Range Queries:
MOβs algorithm: The idea of MOβs algorithm is to pre-process all queries so that result of one query can be used in the next query.
To delve into this concept, letβs look into this problem with given an array and a set of query ranges: https://bit.ly/3SjUM15
Sparse Table: It is used for fast queries on a set of static data. Understand it with a practice problem: https://bit.ly/3y0BTrX
You can find more of these practice problems here: https://bit.ly/3UNBGBW
π5π₯2
"Problem of the Day"
Solve this question to get points.
Given an array of size N containing only 0s, 1s, and 2s; sort the array in ascending order.
Full Problem: https://bit.ly/3y1cqPb
Solve this question to get points.
Given an array of size N containing only 0s, 1s, and 2s; sort the array in ascending order.
Full Problem: https://bit.ly/3y1cqPb
practice.geeksforgeeks.org
Sort an array of 0s, 1s and 2s | Practice | GeeksforGeeks
Given an array of size N containing only 0s, 1s, and 2s; sort the array in ascending order.
Example 1:
Input:
N = 5
arr[]= {0 2 1 2 0}
Output:
0 0 1 2 2
Explanation:
0s 1s and 2s are segregated
into ascending order.
Example 2:
Example 1:
Input:
N = 5
arr[]= {0 2 1 2 0}
Output:
0 0 1 2 2
Explanation:
0s 1s and 2s are segregated
into ascending order.
Example 2:
π6
"Problem of the Day"
Solve this question to get points.
There are n people standing in a circle (numbered clockwise 1 to n) waiting to be executed.
Full Problem: https://bit.ly/3fvaqIt
Solve this question to get points.
There are n people standing in a circle (numbered clockwise 1 to n) waiting to be executed.
Full Problem: https://bit.ly/3fvaqIt
practice.geeksforgeeks.org
Find the Safe Position | Practice | GeeksforGeeks
There are n people standing in a circle (numbered clockwise 1 to n) waiting to be executed. The counting begins at point 1 in the circle and proceeds around the circle in a fixed direction (clockwise). In each step, a certain number of people are ski
π2π1
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
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
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
practice.geeksforgeeks.org
Number of Distinct Islands | Practice | GeeksforGeeks
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. Two islands are considered to be distinct if and only if one island is not
π5
"Problem of the Day"
Solve this question to get points.
Given string str of length N. The task is to find the minimum characters to be added at the front to make string palindrome.
Full Problem: https://bit.ly/3LWG3Xv
Solve this question to get points.
Given string str of length N. The task is to find the minimum characters to be added at the front to make string palindrome.
Full Problem: https://bit.ly/3LWG3Xv
practice.geeksforgeeks.org
Minimum characters to be added at front to make string palindrome | Practice | GeeksforGeeks
Given string str of length N. The task is to find the minimum characters to be added at the front to make string palindrome.
Note: A palindrome is a word which reads the same backward as forward. Example: "madam".
Example
Note: A palindrome is a word which reads the same backward as forward. Example: "madam".
Example
π6
π¨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! π€
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