Data Structures & Algorithms

Shorted Unsorted Subarray

Find the shorted subarray that if we sort only this array in ascending order, the whole will be sorted in ascending order.

Read

Maximum Width of a Binary Tree

Given the root of a binary tree, return the maximum width of the given tree.

Read

Find All the Start Indicies of an Anagram in a Separate String

Given two strings `s` and `p`, find all the start indices of `p`'s anagrams in `s`.

Read

Modular Arithmetic

Modular arithmetc (addition, subtraction, and multiplication).

Read

Find Triplets with Given Sum in an Unsorted Array

Given an unsorted array, find triplets with the given sum

Read

Binary Tree Level Order Traversal

Given the root of a binary tree, return the level order traversal of its nodes' values.

Read

Time and Space Complexities of Popular Sorting Algorithms

Time and space complexities of popular sorting algorithms at one place.

Read

Word Ladder - Length of Shortest Transformation to Reach a Target Word

Find the length of the shortest transformation to reach a target word.

Read