DSA Common Coding Interview Question - Merge Sorted Lists (Part 1)

Поділитися
Вставка
  • Опубліковано 6 лис 2024

КОМЕНТАРІ • 51

  • @sannareddymonesh7598
    @sannareddymonesh7598 3 роки тому +9

    Sir, can u plz make DSA tutorials I think after watching time complexity lecture i found a best teacher in you 🙏🙏 plz try to make atleast one vedio on DSA lectures plz

  • @SwarajRoutray
    @SwarajRoutray 3 роки тому +12

    Keep adding more interview asked ques thanks, man !!

  • @COOL-hi3gj
    @COOL-hi3gj 3 роки тому +4

    Bro please don't pause , make lot of vedioes ,. So nice explanation and i liked ur explanation

  • @ashwithalingannagari4781
    @ashwithalingannagari4781 3 роки тому

    Please keep adding more such questions .very useful. don’t stop them

  • @saisurya4712
    @saisurya4712 3 роки тому +4

    Eagerly Waiting for N no. of arrays sir

  • @yashruparelia8662
    @yashruparelia8662 3 роки тому

    Ok so I am entering in 3rd year now and literally i feel blessed that your video suggested on my feed and i am totally relating you and your college life its almost same i also wasted 2 years of my college life but luckily my CGPA is maintained to 8.6 😂 but i don't able to learn coding 😭 and by seeing your videos i got motivated to follow your path and i have started last 2 3 days and you dont believe in span if this 3 days i feel like i can do....
    Yes, Thanks a lot bhaiya for making such videos thank you so much ❤🙏

  • @aartijadhav6505
    @aartijadhav6505 3 роки тому +1

    I just loved you , now I am also coming to Amazon

  • @Tbm4545
    @Tbm4545 7 місяців тому

    Wait really this question was askked in fang company interview i don't think so, this was so easy

  • @asingh2836
    @asingh2836 4 роки тому +3

    Hey ...
    Great video...😁😁
    Actually i have just started Coding, n i have 6 months and preparing for Amazon..is it possible to prepare in 6 months, if yes then how..give me a roadmap.. thanks..

    • @TheCodeSkool
      @TheCodeSkool  4 роки тому +7

      Hi! Glad you found this video helpful.
      It's not impossible to prepare for Amazon and other such companies in 6 months. You just need to be focused with your studies and your practice with Data Structures and Algos.
      As a fresher, you will be mainly grilled on your algoirthm and problem solving skills. And that can only be improved through sheer practice. I would recommend you to start with any webiste like Interviewbit (my personal preference), leetcode or hackerrank and solve problems starting from easy level and gradually increase difficulty level as you get find it easier.
      Feel free to DM me in case of any further queries. And please don't forget to subscribe my channel and like this video :)

  • @pranithakandimalla6359
    @pranithakandimalla6359 3 роки тому +1

    Thank you and waiting for part-2....

  • @mahimagonde3021
    @mahimagonde3021 3 роки тому

    So simply explained😃😃

  • @raginibhadani7257
    @raginibhadani7257 2 роки тому

    Solution is nicely explained but
    where is sorted list as said in the headline ??Solution in the video is for sorted array

  • @nikhiljadhav9407
    @nikhiljadhav9407 3 роки тому

    Keep doing more videos like that , love it

  • @HarshitSharma-cb7dx
    @HarshitSharma-cb7dx 3 роки тому +1

    Nice solution ❤️❤️ Bhaiya 😁

  • @anuragpandey3341
    @anuragpandey3341 3 роки тому +2

    Bro, I was not able to think the naive solution, but i was able to think the optimized solution under 10 second.....what should i do

  • @yasasvyguntur4109
    @yasasvyguntur4109 3 роки тому

    hey i dont find the part 2 . I loved this video

  • @umarmukhtar5776
    @umarmukhtar5776 2 роки тому

    Carry on sir

  • @pritammajee
    @pritammajee 3 роки тому +2

    Can you please give a roadmap for the lateral entry students from other branches who have only three(almost 2) years to prepare !!! 🙏

  • @RamaKrishna-dx5of
    @RamaKrishna-dx5of 2 роки тому

    💪💪👌👌

  • @venkatasriharsha4227
    @venkatasriharsha4227 3 роки тому

    In which round can u expect these kinda questions?

  • @kshitijmagare5248
    @kshitijmagare5248 3 роки тому +1

    Second part please!!!!!!!!!!!!!!!!!!!!!!!!

  • @RiteshNEVERUNIFORM
    @RiteshNEVERUNIFORM 3 роки тому

    Part 2 please!!!

  • @Tbm4545
    @Tbm4545 7 місяців тому

    Where is that second question with n no of arrays

  • @pratyushpandey6139
    @pratyushpandey6139 3 роки тому +2

    I wanna ask that total how many coding ques 1 company ask finally ,like in amazon ?

    • @TheCodeSkool
      @TheCodeSkool  3 роки тому +2

      Every round has 2-3 questions and there are total 4-5 rounds. So around 10-15 in total.

  • @singhharsh8019
    @singhharsh8019 3 роки тому

    bhaiya have a nice sense of sarcasm if u acn relate🤓

  • @christeenmariaphilip2172
    @christeenmariaphilip2172 3 роки тому

    Pls make such videos

  • @navneetkumarsharma9092
    @navneetkumarsharma9092 3 роки тому +1

    There are 2 loops running, while(true) and for loop inside, how can the time complexity be O(logn)?

    • @SS-rt3fq
      @SS-rt3fq 3 роки тому

      For loop is outside while

  • @nikhilpandey1865
    @nikhilpandey1865 10 місяців тому

    Bhaiya communication skills kaise increase like your type

  • @navneet8638
    @navneet8638 3 роки тому +1

    when will part 2 is coming sir..?

    • @TheCodeSkool
      @TheCodeSkool  3 роки тому +2

      Thanks for watching. It's coming soon 🔜

  • @tarunkumar.d8379
    @tarunkumar.d8379 3 роки тому

    but what if the elements are equal???

  • @amoghshetty5724
    @amoghshetty5724 3 роки тому

    interview mai itna easy question ata hai kya?

  • @NewtownProperties
    @NewtownProperties 3 роки тому

    Sir main arts background se hun , Kya main coding ( c++ , java , phyton ) sikke job Le sakta hun kisi bhi company mein ?

  • @focus15624
    @focus15624 3 роки тому +1

    This is just same as merge sort, specially the sorting part of the merge sort.

  • @fahim8002
    @fahim8002 Рік тому

    // C++ program to merge two sorted arrays
    // std::merge()
    #include
    #include
    using namespace std;
    // Driver code
    int main()
    {
    int A[] = {1, 1, 9};
    int n = sizeof(A)/sizeof(A[0]);
    int B[] = {2, 7, 11, 11};
    int m = sizeof(B)/sizeof(B[0]);
    // Merging in sorted order
    int C[m + n];
    merge(A, (A + n), B, (B + m), C);

    for (int i = 0; i < (m + n); i++)
    cout

  • @yashgoswami5374
    @yashgoswami5374 3 роки тому +1

    part 2?

  • @pratyushpandey6139
    @pratyushpandey6139 3 роки тому +2

    Which IDE is this?

  • @SS-rt3fq
    @SS-rt3fq 3 роки тому

    You didn't check for : if a number in first array equal to a number in second array.

  • @lokeshmehra1716
    @lokeshmehra1716 3 роки тому +1

    Hello sir, I have a doubt like in the interview will they ask us to write only the function or the whole code including int main and all.

    • @TheCodeSkool
      @TheCodeSkool  3 роки тому +3

      Mostly function only

    • @lokeshmehra1716
      @lokeshmehra1716 3 роки тому +1

      @@TheCodeSkool Thanks bhaiya. I am from Bits Hyd. Your videos are helping me a lot.Great stuff bhaiya❤️

  • @rafiulfaisal6240
    @rafiulfaisal6240 3 роки тому

    Improve sound quality