#
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 “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

Problem Statement The problem “Implementation of Deque using Doubly Linked List” states that you need to implement the following functions of Deque or Doubly Ended Queue using a doubly linked list, insertFront(x) : Add element x at the starting of Deque insertEnd(x) : Add element x at the end of …

Read moreImplementation of Deque using Doubly Linked List

Problem Statement the problem “Delete consecutive same words in a sequence” states that you are given a list of n strings. If there are two same words present consecutively, delete both of them. Print the total number of words/strings left in the list after the deletion of all such pairs. …

Read moreDelete consecutive same words in a sequence

Problem Statement The problem “Iterative Method to find Height of Binary Tree” states that you are given a binary tree, find the height of the tree using the iterative method. Examples Input 3 Input 4 Algorithm for Iterative Method to find Height of Binary Tree The height of a tree …

Read moreIterative Method to find Height of Binary Tree