Harshitdaga·May 3, 2023Distance and Center of a Tree or GraphThere are many metrics to measure tree or a graph. This includes center, diameter, radius, length , etc. This metrics try to give an…
Harshitdaga·Jan 28, 2022Solution of count the contiguous subarrays having product less than kGiven an array of integers numsand an integer k, return the number of contiguous subarrays where the product of all the elements in the…
Harshitdaga·Dec 21, 2021Sieve of Eratosthenes, finding prime numbers upto nGiven a number n , find all prime numbers upto range n.