![GeeksforGeeks Practice](/img/default-banner.jpg)
- 2 063
- 2 618 095
GeeksforGeeks Practice
India
Registrace 23. 02. 2021
Still scared of Programming Problems? Here, we will help you with step by step implementation of
algorithms with visualization of code.
algorithms with visualization of code.
POTD- 27/07/2024 | Form a Palindrome | Problem of the Day | GeeksforGeeks Practice
Welcome to the daily solving of our PROBLEM OF THE DAY with Karan Mashru. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Data Structures and Algorithms but will also help you build up problem-solving skills.
So come along and solve the GFG POTD of 27th July 2024 with us!
💻 Try it Yourself: practice.geeksforgeeks.org/problems/form-a-palindrome1455/1?
Find daily solutions for POTD here on our channel! Make sure you are subscribed and stay updated.
-----------------------------------------------------------------------------------------
🏆 Take part in our Weekly Coding Contests: practice.geeksforgeeks.org/events/rec/gfg-weekly-coding-contest?
📖 Master Competitive Programming - Complete Beginner to Advanced: practice.geeksforgeeks.org/courses/competitive-programming-cp?
-----------------------------------------------------------------------------------------
Follow us and stay updated on everything happening in the world of geeks:
📱 Twitter- geeksforgeeks
📝 LinkedIn- www.linkedin.com/company/geeksforgeeks
🌐 Facebook- geeksforgeeks.org
📷 Instagram- geeks_for_geeks?hl=en
#GFGPractice #GeeksforGeeks #ProblemofTheDay #CodingQuestions #POTD #POTD27JULY #problemsolving #practice #dsa #FormaPalindrome #string #dynamicprogramming #datastructures #alogrithim #karanmashru #gfgpractice
So come along and solve the GFG POTD of 27th July 2024 with us!
💻 Try it Yourself: practice.geeksforgeeks.org/problems/form-a-palindrome1455/1?
Find daily solutions for POTD here on our channel! Make sure you are subscribed and stay updated.
-----------------------------------------------------------------------------------------
🏆 Take part in our Weekly Coding Contests: practice.geeksforgeeks.org/events/rec/gfg-weekly-coding-contest?
📖 Master Competitive Programming - Complete Beginner to Advanced: practice.geeksforgeeks.org/courses/competitive-programming-cp?
-----------------------------------------------------------------------------------------
Follow us and stay updated on everything happening in the world of geeks:
📱 Twitter- geeksforgeeks
📝 LinkedIn- www.linkedin.com/company/geeksforgeeks
🌐 Facebook- geeksforgeeks.org
📷 Instagram- geeks_for_geeks?hl=en
#GFGPractice #GeeksforGeeks #ProblemofTheDay #CodingQuestions #POTD #POTD27JULY #problemsolving #practice #dsa #FormaPalindrome #string #dynamicprogramming #datastructures #alogrithim #karanmashru #gfgpractice
zhlédnutí: 36
Video
POTD- 26/07/2024 | K-Pangrams | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 150Před 2 hodinami
Welcome to the daily solving of our PROBLEM OF THE DAY with Jay Dalsaniya. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Data Structures and Algorithms but will also help you build up problem-solving skills. So come along and solve the GFG POTD of 26th July 2024 with us! 💻 Try it Yourse...
POTD- 25/07/2024 | Array to BST | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 161Před 4 hodinami
Welcome to the daily solving of our PROBLEM OF THE DAY with Devashish Khare. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Data Structures and Algorithms but will also help you build up problem-solving skills. So come along and solve the GFG POTD of 25th July 2024 with us! 💻 Try it Your...
POTD- 24/07/2024 | Check for BST | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 185Před 7 hodinami
Welcome to the daily solving of our PROBLEM OF THE DAY with Jay Dalsaniya. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Data Structures and Algorithms but will also help you build up problem-solving skills. So come along and solve the GFG POTD of 24th July 2024 with us! 💻 Try it Yourse...
POTD- 23/07/2024 | Merge two BST's | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 251Před 9 hodinami
Welcome to the daily solving of our PROBLEM OF THE DAY with Jay Dalsaniya. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Data Structures and Algorithms but will also help you build up problem-solving skills. So come along and solve the GFG POTD of 23rd July 2024 with us! 💻 Try it Yourse...
POTD- 22/07/2024 | Largest BST | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 187Před 12 hodinami
Welcome to the daily solving of our PROBLEM OF THE DAY with Saurabh Bansal. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Data Structures and Algorithms but will also help you build up problem-solving skills. So come along and solve the GFG POTD of 22th July 2024 with us! 💻 Try it Yours...
Job-A-Thon 35 Hiring Challenge Post Contest Analysis | Karan Mashru
zhlédnutí 567Před 12 hodinami
Welcome to this insightful post-contest analysis of Job-A-Thon 35 Hiring Challenge hosted by Karan Mashru. In this video, we delve deep into the challenge, its solutions, and the strategies that led to success. Whether you participated in the contest or just curious about competitive coding and data science hiring, this breakdown will provide valuable insights. Job-A-Thon is a monthly hiring ch...
POTD- 21/07/2024 | Maximum Product Subset of an Array | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 287Před 14 hodinami
Welcome to the daily solving of our PROBLEM OF THE DAY with Saurabh Bansal. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Data Structures and Algorithms but will also help you build up problem-solving skills. So come along and solve the GFG POTD of 21th July 2024 with us! 💻 Try it Yours...
GFG Weekly Coding Contest - 164 Post Analysis | GeeksforGeeks Practice
zhlédnutí 1,5KPřed 14 hodinami
Join us for a post-contest analysis with Karan Mashru where we will be discussing the problems from the GFG Weekly Coding Contest - 164. In this session, Karan will be sharing his approach to solving problems and providing valuable insights on how to approach similar problems in the future. Whether you participated in the contest or not, this session is a great opportunity to learn new problem-...
POTD- 20/07/2024 | Remove Half Nodes | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 218Před 16 hodinami
Welcome to the daily solving of our PROBLEM OF THE DAY with Jay Dalsaniya. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Data Structures and Algorithms but will also help you build up problem-solving skills. So come along and solve the GFG POTD of 20thJuly 2024 with us! 💻 Try it Yoursel...
POTD- 19/07/2024 | Count Smaller Elements | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 356Před 19 hodinami
Welcome to the daily solving of our PROBLEM OF THE DAY with Saurabh Bansal. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Data Structures and Algorithms but will also help you build up problem-solving skills. So come along and solve the GFG POTD of 19th July 2024 with us! 💻 Try it Yours...
POTD- 18/07/2024 | Longest Alternating Subsequence | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 250Před 21 hodinou
Welcome to the daily solving of our PROBLEM OF THE DAY with Jay Dalsaniya. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Data Structures and Algorithms but will also help you build up problem-solving skills. So come along and solve the GFG POTD of 18thJuly 2024 with us! 💻 Try it Yoursel...
POTD- 17/07/2024 | Construct Binary Tree from Parent Array | Problem of the Day | GeeksforGeeks
zhlédnutí 212Před dnem
Welcome to the daily solving of our PROBLEM OF THE DAY with Jay Dalsaniya. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Data Structures and Algorithms but will also help you build up problem-solving skills. So come along and solve the GFG POTD of 17thJuly 2024 with us! 💻 Try it Yoursel...
POTD- 16/07/2024 | Remaining String | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 183Před dnem
Welcome to the daily solving of our PROBLEM OF THE DAY with Siddhartha Hazra. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Data Structures and Algorithms but will also help you build up problem-solving skills. So come along and solve the GFG POTD of 16thJuly 2024 with us! 💻 Try it Your...
POTD- 15/07/2024 | Smallest Number | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 271Před dnem
POTD- 15/07/2024 | Smallest Number | Problem of the Day | GeeksforGeeks Practice
GFG Weekly Coding Contest - 163 Post Analysis | GeeksforGeeks Practice
zhlédnutí 969Před dnem
GFG Weekly Coding Contest - 163 Post Analysis | GeeksforGeeks Practice
POTD- 14/07/2024 | Segregate 0s and 1s | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 166Před dnem
POTD- 14/07/2024 | Segregate 0s and 1s | Problem of the Day | GeeksforGeeks Practice
POTD- 13/07/2024 | Shortest Path in Weighted Undirected Graph | Problem of the Day | GeeksforGeeks
zhlédnutí 199Před 14 dny
POTD- 13/07/2024 | Shortest Path in Weighted Undirected Graph | Problem of the Day | GeeksforGeeks
POTD- 12/07/2024 | Root to Leaf Path Sum | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 152Před 14 dny
POTD- 12/07/2024 | Root to Leaf Path Sum | Problem of the Day | GeeksforGeeks Practice
POTD- 11/07/2024 | Maximum Connected Group | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 337Před 14 dny
POTD- 11/07/2024 | Maximum Connected Group | Problem of the Day | GeeksforGeeks Practice
POTD- 10/07/2024 | Largest Square Formed in a Matrix | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 269Před 14 dny
POTD- 10/07/2024 | Largest Square Formed in a Matrix | Problem of the Day | GeeksforGeeks Practice
POTD- 09/07/2024 | Closest Three Sum | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 268Před 14 dny
POTD- 09/07/2024 | Closest Three Sum | Problem of the Day | GeeksforGeeks Practice
POTD- 08/07/2024 | Search in a Rotated Array | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 188Před 14 dny
POTD- 08/07/2024 | Search in a Rotated Array | Problem of the Day | GeeksforGeeks Practice
POTD- 07/07/2024 | Ancestors in Binary Tree | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 153Před 14 dny
POTD- 07/07/2024 | Ancestors in Binary Tree | Problem of the Day | GeeksforGeeks Practice
POTD- 06/07/2024 | Populate Inorder Successor for all Nodes | Problem of the Day | GeeksforGeeks
zhlédnutí 173Před 21 dnem
POTD- 06/07/2024 | Populate Inorder Successor for all Nodes | Problem of the Day | GeeksforGeeks
POTD- 05/07/2024 | Vertical Width of a Binary Tree | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 209Před 21 dnem
POTD- 05/07/2024 | Vertical Width of a Binary Tree | Problem of the Day | GeeksforGeeks Practice
POTD- 04/07/2024 | Duplicate Subtrees | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 215Před 21 dnem
POTD- 04/07/2024 | Duplicate Subtrees | Problem of the Day | GeeksforGeeks Practice
POTD- 03/07/2024 | Remove all Occurrences of Duplicates in a Linked List | Problem of the Day | GfG
zhlédnutí 314Před 21 dnem
POTD- 03/07/2024 | Remove all Occurrences of Duplicates in a Linked List | Problem of the Day | GfG
POTD- 02/07/2024 | Linked List of Strings Forms a Palindrome | Problem of the Day | GeeksforGeeks
zhlédnutí 221Před 21 dnem
POTD- 02/07/2024 | Linked List of Strings Forms a Palindrome | Problem of the Day | GeeksforGeeks
POTD- 01/07/2024 | Make Binary Tree From Linked List | Problem of the Day | GeeksforGeeks Practice
zhlédnutí 313Před 21 dnem
POTD- 01/07/2024 | Make Binary Tree From Linked List | Problem of the Day | GeeksforGeeks Practice
How is this recursive?
ques2 - 08:10 ques3 - 40:49
for(int i=1;i>1;i++) { cout<<"💯"; }
I'm getting this = Your Code is not producing any output.
7:07 bro you also know you fkd up the explanation at this point..
Best intuitive explanation so far. Thanks.
waste solution
Hi Sidharth @sidhartha166 can you tell me one thing, how do you write with pen tablet on gfg site, because of i am able to use only in whiteboard
bro your explanations is at peaks. thank you so much
I used the first approach it got submitted bro
Solved this one today.
can any one tell what is the difficulty rate for the 2 and 3 question (medium or hard)
I don't think you need to calculate prime numbers beforehand as when you are starting from two and going till sqrt(n) you are already making sure you only divide arr[i] by prime numbers for example you check arr[i] is divisible by 2 and divide the number till it is no more divisible by two so when 4 or 6 comes they will not increase the count same for other prime numbers
Great video
thankyou bro your approach is cleared is there any practice sessons for creating a DB for projects??
i ws not getting the whats the limit of zeros but this video cleared thank you
Great explanation
I did the third question in a similar way with same time complexity but TLE, was it because I did in Python? The code that I did: from typing import List class Solution: def countSubarrays(self, n: int, arr: List[int]) -> int: ans = len(arr) for i in range(n): Min = arr[i] Max = arr[i] for j in range(i + 1, n): Min = min(Min, arr[j]) Max = max(Max, arr[j]) ln = j - i + 1 if (Min + Max) % ln == 0: ans += 1 return ans
No bro Its not same he has i+51 in inner loop. you are traversing the whole array for every I.
bad explaination
Wow it's so simple... And I thought that's I use to the recursive for finding subarr.. to do the product..
best explaination
Nice explanation!
Great Explanation
Sir ques 4 exactly same solution is giving TLE for Java
SAme here for cpp To its giving error
great video
i got last question like upto 60 percetn i guess, thought of reducing number, this was great explanation
same
Very Nicely Explained,
so close. if only i had seen the constraints for the 3rd question
same here
Great explanation... Understood👍
import java.util.ArrayList; public class sumofalldivisorfrom1ton { static long sumOfDivisors(int N) { ArrayList<Integer> arr = new ArrayList<>(); while (N>0) { for (int i = 1; i * i <= N; i++) { if (N % i == 0) { arr.add(i); if (i != N / i) { arr.add(N / i); } } } N--; } long sum = 0L; for (int x : arr) { sum+=x; } return sum; } public static void main(String[] args) { System.out.println(sumOfDivisors(4)); } } this is my logic but it is bruteforce and expected time is 1ms
aisa lg rha h bhaiya mst phook k bethe h
Nyc explanation ❤
@GeeksforGeeksPractice you guys always explain the solution but, but there is only one ( Siddharth Hazra) who explain to us why we would be doing this, He help us to build the approach not just solutions 😅😅.
This could be a worst possible explanation of a solution, just simply dry running the working code without even giving the intuition behind it😪
nothing is clear
Superb explanation bro. You made this hard problem very easy to understand.
Please explain brute force approach for the problem, then better followed by optimal. Also explain the intuition behind the optimal solution. Aditya Rajiv's explanation for this problem was easy to understand.
you shuold not directly jump to code doing dry run, first tell how we derived the code in the first place.. you never explained why it's inc =dec+1
❤❤❤
Very bad teaching...You are not good in english
nice explanation
NICE SUPER EXCELLENT MOTIVATED
❤
My solution: string smallestNumber(int s, int d) { if(s > 9*d) return "-1"; int max = 9*(d-1); string ans; for(int i=0;i<d;i++) { int rem = s - max; char c = rem+'0'; if(s > max){ ans.push_back(c); s -= rem; } else { if(i==0) { ans.push_back('1'); s--; } else { ans.push_back('0'); } } max-=9; } return ans; }
Please don't explain solution,explain the intuition and dry run the code
Sir one day i will be also good problem solver like you .
Best explanation My soln ---> same approach but a little easy to implement string smallestNumber(int s, int d) { // code here if(d*9<s){ return "-1"; } s--; d--; string res; for(int i=0; i<d; i++){ int ans = min(9, s); s-= ans; res.push_back('0'+ans); } if(s){ s++; res.push_back('0'+s); }else{ res.push_back('1'); } reverse(res.begin(), res.end()); return res; }
poor explanation for D
i have never the comments reach more than 50 from unique users.. so 100 users is just too much you should make the videos regardless.. not everyone watches these post contest analysis...