Question
What is the time complexity of inserting an element in a
heap?Solution
Insertion may require "heapify-up," which takes O(log n) time for a heap of n elements.
A number is three times another number and their HCF is 8. What is the sum of the squares of the numbers?
Find the smallest 3-digit number that leaves 2 as remainder when divided by 6, 4 and 7.
Four runners started running simultaneously from a point on a circular track. They took 400 seconds, 600 seconds, 720 seconds and 900 seconds to comple...
If Ashish has 3 types of pens in a ratio 4 : 6 : 5 such that their LCM is 360, then find the sum of the highest and lowest number of pens that he has?
The HCF and LCM of two natural numbers are 14 and 84, respectively. What is the difference between the two numbers, if one of the numbers is 28?
The H.C.F of two numbers is 3 and their L.C.M is 782. If one of the numbers is 34, find the other?
The HCF of 2165 and 7409 is 239, their LCM is:
The HCF of two numbers is 21. Which of the following can never be their LCM?
The product of two numbers is 504 and their HCF is 6. Total number of such pairs of numbers is?  Â
The Highest Common Factor (HCF) and Least Common Multiple (LCM) of two numbers, A and B, are given as 12 and 180, respectively. Additionally, the differ...