Gblog Must Do Coding Questions for Companies like Amazon, Microsoft, Adobe, …
As the placement season is back so are we to help you ace the interview. We have selected some most commonly asked and must do… Read More
December 30, 2020
Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number. For example,… Read More
Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number. For example, if… Read More
Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number. For example,… Read More
Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number.  Example: … Read More
Given an unsorted array and a number n, find if there exists a pair of elements in the array whose difference is n. Examples: Input:… Read More
A magic square of order n is an arrangement of n2 numbers, usually distinct integers, in a square, such that the n numbers in all… Read More
Given an array that contains both positive and negative integers, find the product of the maximum product subarray. Expected Time complexity is O(n) and only… Read More