Count minimum steps to get the given desired array | GeeksforGeeks

Explanation for the article: www.geeksforgeeks.org/count-mi...
This video is contributed by Harshit Jain.

Пікірлер: 11

  • @AnkitSharma-gt1dr
    @AnkitSharma-gt1dr5 жыл бұрын

    another approach arr=[6,5,11,9,10,10] sum=0 a=min(arr) b=a count=0 while(b): count+=1 b=b>>1 sum+=count-1+len(arr)+(a-(1

  • @hermesmercuriustrismegistu4841

    @hermesmercuriustrismegistu4841

    4 жыл бұрын

    Ankit Sharma clever solution!

  • @hermesmercuriustrismegistu4841
    @hermesmercuriustrismegistu48414 жыл бұрын

    Waw what a clever solution!

  • @nguyenhung2441
    @nguyenhung24416 жыл бұрын

    what is the time complexity of this algorithm ?

  • @shubham8835
    @shubham88353 жыл бұрын

    Its just not about just reciting the solutio and say , u have to explain Srsly he is just saying out whats written there

  • @hardikmittal7291
    @hardikmittal72913 жыл бұрын

    What is the time complexity for this solution?

  • @divyachoudhary4940
    @divyachoudhary49403 жыл бұрын

    When you guys explain a problem, can you please focus more on the logical part and how to approach a problem rather than just explaining the code.

  • @hridayjyotiborkakati3449
    @hridayjyotiborkakati34492 жыл бұрын

    its not the way man to teach DSA like this...U just take the code from gfg and just u are saying on that particular line. how to approach ,why we are approching u should teach us na

  • @shubham8835
    @shubham88353 жыл бұрын

    the guys who explain these questions totally dont explain nicely