ARRAY PRACTICE PROBLEMS | Must do Array Questions | DSA Problems | GeeksforGeeks

Поділитися
Вставка
  • Опубліковано 7 лип 2024
  • 🚀 Join GeeksforGeeks in our next DSA Course video as we delve into the fascinating world of ARRAY PRACTICE PROBLEMS!
    Uncover the secrets of solving well-known array problems that are frequently asked in interviews. We'll not only walk you through the problems but also provide strategic insights on how to approach and master them.
    🕵️‍♂️ Elevate your problem-solving skills and gain a deeper understanding of Arrays and Array Manipulation.
    Prepare to conquer your next interview with confidence and finesse by practicing our DSA Problems.
    Read More: www.geeksforgeeks.org/top-50-...
    💻 Following are the Practice Problems we have discussed in the video (suggest you to try it yourself):
    00:00 - Introduction
    00:30 - Leaders in an array: practice.geeksforgeeks.org/pr...
    02:40 - Sort an array 0s, 1s, and 2s : practice.geeksforgeeks.org/pr...
    04:23 - Count More than n/k Occurences: practice.geeksforgeeks.org/pr...
    06:25 - Kadane's Algorithm: practice.geeksforgeeks.org/pr...
    08:14 - Smallest Positive missing number: practice.geeksforgeeks.org/pr...
    -------------------------------------------------------------------------
    🔴 What is Queue? Watch Now!: • ARRAY PRACTICE PROBLEM...
    🔴 Check out the Full DSA Course Playlist: • DSA Course | Data Stru...
    -------------------------------------------------------------------------
    📖 Want to Learn more about Data Structures and Algorithms?
    Check out our Data Structures and Algorithms - Self Paced Course Now!: www.geeksforgeeks.org/courses...
    📚 Explore Our Courses: practice.geeksforgeeks.org/co...
    -------------------------------------------------------------------------
    Follow us for more fun, knowledge, and resources:
    💬 Twitter- / geeksforgeeks
    🧑‍💼 LinkedIn- / geeksforgeeks
    📷 Instagram- geeks_for_g...
    💌 Telegram- t.me/s/geeksforgeeks_official
    📱 Download GeeksforGeeks' Official App: geeksforgeeksapp.page.link/gf...
    #GeeksforGeeks #GfG #datastructures #arrays #arraypracticeproblems #arrayturorials #practiceproblems #arraymanipulation #arrayquestions #arrayinterviewproblems #datastructuresandalgorithms #dsa

КОМЕНТАРІ • 13

  • @GeeksforGeeksVideos
    @GeeksforGeeksVideos  6 місяців тому +1

    🔴 What is Queue? Watch Now!: ua-cam.com/video/J7EhXvnixRM/v-deo.htmlsi=Swnh_wOAgvdRVXmX
    🔴 Check out the Full DSA Course: ua-cam.com/play/PLqM7alHXFySHWUSBXUW9eq-ajb2JLoFNS.html&si=m_4B8bdS8dSJ9W6m

  • @GeeksforGeeksVideos
    @GeeksforGeeksVideos  Рік тому +1

    Suggest some more practice question here!

  • @jithendhar8817
    @jithendhar8817 Рік тому +4

    Hey sir, if possible, try to explain implementation of recursion problems with more than 2 recursion calls & explain how to build logic in the first place to write such recursion functions.

    • @GeeksforGeeksVideos
      @GeeksforGeeksVideos  Рік тому +2

      Thank you for the suggestion. We will definitely try to make a video on the same. Till then, you can search for the same on: www.geeksforgeeks.org/

  • @AnjaneyuluGadelaRamanjaneyulu
    @AnjaneyuluGadelaRamanjaneyulu Місяць тому +1

    Sir where is the code of the problems ur just explaining

  • @misy_code
    @misy_code Місяць тому

    Leaders in an array:-
    brute force approach:-
    my_array = list(map(int, input("Enter comma seperated values").split(",")))
    n = len(my_array)
    ans = []
    for i in range(n):
    leader = True
    for j in range(i+1, n):
    if my_array[j] > my_array[i]:
    leader = False
    if leader == True:
    ans.append(my_array[i])
    print(ans)
    optimal approach:-
    my_array = list(map(int, input("Enter comma separated values").split(",")))
    n = len(my_array)
    ans = []
    maxi = 0
    for i in reversed(range(n)):
    if my_array[i] >= maxi:
    ans.append(my_array[i])
    maxi = max(my_array[i], maxi)
    ans.reverse()
    print(ans)

  • @misy_code
    @misy_code Місяць тому

    Sort an array of 0s 1s 2a using DNF Algorithm
    my_array = list(map(int, input("Enter space separated elements with 0s 1s 2s").split()))
    n = len(my_array)
    low = 0
    mid = 0
    high = n-1
    while mid

  • @akshatakorgaonkar7379
    @akshatakorgaonkar7379 4 місяці тому +1

    where can i find solution to these problems?

    • @3dDigitalArtToday
      @3dDigitalArtToday 3 місяці тому

      public static void main (String [] args){
      int [] arr={16, 17, 4, 3, 5, 2};
      int n= arr.length;
      int max= arr[n-1];
      System.out.println("Leader of the array is "+ max);
      for(int i=n-2;i>=0; i--){
      if(arr[i]>max){
      max= arr[i];
      System.out.println("Leaders of the array "+ max);
      }
      }
      }

    • @akshatakorgaonkar7379
      @akshatakorgaonkar7379 3 місяці тому

      thanks@@3dDigitalArtToday

  • @r.kgamer5501
    @r.kgamer5501 Рік тому +1

    Bhai hacking so jata hai

  • @vandnajaiswal3254
    @vandnajaiswal3254 2 місяці тому

    Bakwaas

    • @misy_code
      @misy_code Місяць тому +1

      @vandnajaiswal3254 If you can't speak well then don't speak anything at all. You don't know how much courage, practice, and hard work it takes to become a mentor in geeks for geeks. If you cannot encourage something good out there, stay quiet and don't speak badly.