Author: Ansh Goyal

GET and POST Requests are the two most widely used HTTP methods in Express. Let us see their working in…

Floyd’s Cycle Detection Algorithm or the Hare-Tortoise Algorithm is a two pointer approach based algorithm. It is most commonly used…

Boyer-Moore Majority Voting Algorithm is a popular algorithm for solving the problems where we have to find the majority elements…

Wilson’s theorem states that a natural number p > 1, is a prime number, if and only if, That is,…

An example of Linear Diophantine equation is 25x + 15y = 400 We are given with just a single equation…

Bellman ford algorithm is used to find shortest weight path from a source vertex to all other vertex in a…

Write an efficient program to find the sum of subarray (Not subsequence) within a 1-D array of numbers that has…

There are many sorting algorithms like Merge Sort, Heap Sort, Quick Sort, Insertion Sort, etc., but the lower bound for…

Consider a problem, where you need to represent hierarchy. For example, organization structure. You want to represent the structure of…

We are given two sets of integers such that the elements in Set-1 divides a number ‘x’ and leaves the…