#
Crack the Coding Interviews

Prepare for technical interviews and learn from handcrafted tutorials and interview questions

**Explore Interview Questions →**

## Programming Tutorials

Learn programming and get technical knowledge from our handcrafted tutorials

## Python Tutorial

A tutorial which will make you expert in Python.

START →

# Latest Articles

Problem Statement The problem “Queries for counts of array elements with values in given range” states that you have an integer array and two number x and y. The problem statement asks to find out the count of numbers present in array that lies between the given x and y. …

Read moreQueries for counts of array elements with values in given range

Problem Statement The problem “Number of elements less than or equal to a given number in a given subarray” states that you are given an integer array and q number of queries. There will be two types of queries à queryUpdate(i, v): There will be two integers i and v, …

Read moreNumber of elements less than or equal to a given number in a given subarray

Problem Statement The problem “Largest divisible pairs subset” states that you are given an array of n distinct elements. Find the length of largest such that each pair of the subset has the larger element divisible by smaller elements. Example array = {1, 2, 4, 5, 8, 9, 16} 5 …

Read moreLargest divisible pairs subset

Problem Statement The problem ‘GCDs of given index ranges in an array” states that you are given an integer array and some range queries. The problem statement asks to find out the Greatest Common Divisor of the sub-array so formed within the range. Example arr[] = {10, 5, 18, 9, …

Read moreGCDs of given index ranges in an array

Problem Statement The “Queries for GCD of all numbers of an array except elements in a given range” problem states that you will be given an integer array and a q number of queries. Each query contains the number left and right. The problem statement asks to find out the …

Read moreQueries for GCD of all numbers of an array except elements in a given range