GeeksforGeeks Practice
GeeksforGeeks Practice
  • 2 063
  • 2 618 095
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
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

Komentáře

  • @abhishekupadhyay9962
    @abhishekupadhyay9962 Před 4 hodinami

    How is this recursive?

  • @user-xw6ns6ih5f
    @user-xw6ns6ih5f Před 5 hodinami

    ques2 - 08:10 ques3 - 40:49

  • @pratikbarye2527
    @pratikbarye2527 Před 6 hodinami

    for(int i=1;i>1;i++) { cout<<"💯"; }

  • @Gaurav_Sharma_12
    @Gaurav_Sharma_12 Před dnem

    I'm getting this = Your Code is not producing any output.

  • @jacobblack2544
    @jacobblack2544 Před 2 dny

    7:07 bro you also know you fkd up the explanation at this point..

  • @mohdfaizel8327
    @mohdfaizel8327 Před 2 dny

    Best intuitive explanation so far. Thanks.

  • @karthikpriyanth6153

    waste solution

  • @communicationschoola

    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

  • @santhosh7042
    @santhosh7042 Před 3 dny

    bro your explanations is at peaks. thank you so much

  • @kthamim7552
    @kthamim7552 Před 4 dny

    I used the first approach it got submitted bro

  • @siddharthsinghtanwar2043

    Solved this one today.

  • @PraveenKumar-vz4dy
    @PraveenKumar-vz4dy Před 4 dny

    can any one tell what is the difficulty rate for the 2 and 3 question (medium or hard)

  • @paarthjindal4100
    @paarthjindal4100 Před 4 dny

    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

  • @prakhargarg4166
    @prakhargarg4166 Před 5 dny

    Great video

  • @kthamim7552
    @kthamim7552 Před 5 dny

    thankyou bro your approach is cleared is there any practice sessons for creating a DB for projects??

  • @_sf_editz1870
    @_sf_editz1870 Před 5 dny

    i ws not getting the whats the limit of zeros but this video cleared thank you

  • @harshbachchani7981
    @harshbachchani7981 Před 5 dny

    Great explanation

  • @sohankarfa4051
    @sohankarfa4051 Před 5 dny

    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

    • @rv5778
      @rv5778 Před 5 dny

      No bro Its not same he has i+51 in inner loop. you are traversing the whole array for every I.

  • @user-yf9fo2pg5e
    @user-yf9fo2pg5e Před 6 dny

    bad explaination

  • @CodeChallengee
    @CodeChallengee Před 6 dny

    Wow it's so simple... And I thought that's I use to the recursive for finding subarr.. to do the product..

  • @nikhiljain-nl7rs
    @nikhiljain-nl7rs Před 6 dny

    best explaination

  • @vibhosharma9487
    @vibhosharma9487 Před 6 dny

    Nice explanation!

  • @ayaaniqbal3531
    @ayaaniqbal3531 Před 6 dny

    Great Explanation

  • @debapriyadasgupta6534

    Sir ques 4 exactly same solution is giving TLE for Java

  • @prakhargarg4166
    @prakhargarg4166 Před 6 dny

    great video

  • @sojwalgosavi4406
    @sojwalgosavi4406 Před 6 dny

    i got last question like upto 60 percetn i guess, thought of reducing number, this was great explanation

  • @PRANJALKUMARSHUKLA
    @PRANJALKUMARSHUKLA Před 6 dny

    Very Nicely Explained,

  • @shivamgutgutia
    @shivamgutgutia Před 6 dny

    so close. if only i had seen the constraints for the 3rd question

  • @sonalikumari2618
    @sonalikumari2618 Před 7 dny

    Great explanation... Understood👍

  • @SaurabhKumar-jv7wh
    @SaurabhKumar-jv7wh Před 7 dny

    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

  • @SaurabhKumar-jv7wh
    @SaurabhKumar-jv7wh Před 7 dny

    aisa lg rha h bhaiya mst phook k bethe h

  • @Rajeevkumar-lm3qb
    @Rajeevkumar-lm3qb Před 7 dny

    Nyc explanation ❤

  • @SumitKumar_4549
    @SumitKumar_4549 Před 7 dny

    @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 😅😅.

  • @saianuragone828
    @saianuragone828 Před 7 dny

    This could be a worst possible explanation of a solution, just simply dry running the working code without even giving the intuition behind it😪

  • @nandhinik04
    @nandhinik04 Před 7 dny

    nothing is clear

  • @ashwinbalaji26
    @ashwinbalaji26 Před 7 dny

    Superb explanation bro. You made this hard problem very easy to understand.

  • @ashwinbalaji26
    @ashwinbalaji26 Před 8 dny

    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.

  • @aizad786iqbal
    @aizad786iqbal Před 8 dny

    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

  • @sachinsahu3021
    @sachinsahu3021 Před 10 dny

    ❤❤❤

  • @luvsharma5936
    @luvsharma5936 Před 10 dny

    Very bad teaching...You are not good in english

  • @18_comp_b_shashankmishra87

    nice explanation

  • @ganeshjaggineni4097
    @ganeshjaggineni4097 Před 10 dny

    NICE SUPER EXCELLENT MOTIVATED

  • @starjuda363
    @starjuda363 Před 11 dny

  • @ashwinbalaji26
    @ashwinbalaji26 Před 11 dny

    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; }

  • @Kashyap12858
    @Kashyap12858 Před 11 dny

    Please don't explain solution,explain the intuition and dry run the code

  • @Haxaze
    @Haxaze Před 11 dny

    Sir one day i will be also good problem solver like you .

  • @shvmsh20
    @shvmsh20 Před 12 dny

    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; }

  • @anonymous10906
    @anonymous10906 Před 12 dny

    poor explanation for D

  • @aizad786iqbal
    @aizad786iqbal Před 12 dny

    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...