Good link for job interview preperations https://github.com/yash0530/InterviewPrepResources
I am also active at:
Thursday, December 24, 2020
Tuesday, December 15, 2020
Saturday, December 12, 2020
Sunday, December 6, 2020
Saturday, December 5, 2020
What's a priority queue?
'Ladies first' is an instance of 'min priority queue', where as a queue free from any such bias is a normal queue.
Difference between creating a heap and heapify
Creating a Heap is inserting all the elements of a given array into an existing heap assuming the first element of the given array as the initial heap, where as Heapify is simply creating a CBT ( complete binary tree) with all the elements of the given array and then converting that CBT into a heap, by moving up from the last non-leaf node up to the root.
Why time complexity of Heapify is O(n)?
Look at this first then you may Have a look here also.
Harmonic progression this is needed to understand the above.
Subscribe to:
Posts (Atom)
इश्क में ग़ैरत-ए-जज़्बात ने रोने ना दिया - सुदर्शन फ़ाकिर
इश्क में ग़ैरत-ए-जज़्बात ने रोने ना दिया वरना क्या बात थी किस बात ने रोने ना दिया आप कहते थे कि रोने से ना बदलेंगे नसीब उमर भर आप की इस बात...
-
Acronym Full Form AJAX Asynchronous JavaScript and XML API Application Programming Interface APK Android Application Package ASP Activ...
-
#include<stdio.h> int main() { int M,N,q; scanf("%i %i",&M, &N); if((M%N)!=0) {printf("0...
-
"A good company understands that problem solving ability and the ability to learn new things are far more important than knowledge o...