Nuts and bolts problem | gfg potd | 10-06-2024 | GFG Problem of the day

Поділитися
Вставка
  • Опубліковано 28 вер 2024
  • Geeks for Geeks Problem of the Day(POTD) in C++ | Convert array into Zig-Zag fashion | Fully Explained🧠
    Solution Code :
    github.com/Ish...
    IMPORTANCE OF DSA FOR PLACEMENT:
    • Is DSA Still Important...
    BEST FREE WEB DEVELOPMENT COURSE:
    • Video
    🌐 Connect with Me:
    GitHub: github.com/Ish...
    Linkedin: / ishansawhney
    #GFG #POTD #geeksforgeeks #problemoftheday #c++

КОМЕНТАРІ • 3

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

    merge sort v aaply kr sakte ? which one is better ..interview ke point of view se

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

      Quick Sort is often preferred due to its in-place nature and better average-case performance. Here are some points to consider:
      Space Complexity: Quick Sort's in-place sorting is advantageous because it does not require additional memory proportional to the input size, unlike Merge Sort.
      Performance: Quick Sort typically performs faster in practice due to better cache performance and less overhead compared to Merge Sort.
      Implementation Simplicity: The nuts and bolts problem is naturally suited to the partitioning strategy used in Quick Sort, where each partition step helps in reducing the problem size.
      Hope it helps 🙂

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

      @@CodeGenius316 ok got it..thankyou sir