#
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 Given a data structure (stack). Write a program to delete the middle element of the given stack using the basic functions of the stack – push() – to insert an element in the stack. pop() – to remove/delete the top element from the stack. empty() – to check …

Read moreDelete middle element of a stack

Problem statement The problem “Sorting array using Stacks” states that you are given a data structure array a[ ] of size n. Sort the elements of the given array using stack data structure. Example 2 30 -5 43 100 -5 2 30 43 100 Explanation: The elements are sorted in …

Read moreSorting array using Stacks

Problem Statement Find the Binomial Coefficient for a given value of n and k. “In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers n ≥ k ≥ 0 and is written as ” – quoted from Wikipedia. Example n = 5, k …

Read moreBinomial Coefficient

Problem Statement The problem “Binary Search Tree Delete Operation” asks us to implement the delete operation for binary search tree. Delete function refers to the functionality to delete a node with a given key/data. Example Input Node to be deleted = 5 Output Approach for Binary Search Tree Delete Operation So …

Read moreBinary Search Tree Delete Operation

Problem Statement The problem “Best Time to Buy and Sell Stock” states that you are given an array of prices of length n, where the ith element stores the price of stock on ith day. If we can make only one transaction, that is, to buy on one day and …

Read moreBest Time to Buy and Sell Stock