Level Order

source code

Algorithm problems

Explanations with code solutions and time/space complexity analysis

Fibonacci numbers
Calculate the n-th fibonacci number
Longest palindromic substring
Find the longest substring that reads the same, forward and backwards
Longest common subsequence
Given two strings, find the longest subsequence that appears in both
Kth largest element
Find the k-th largest element in an unsorted array
Flood fill
Implement the paint bucket behavior of image editors
Maximum subarray sum
Find the maximum sum of any continous sequence of numbers in an array
N queens
Arrange N queens on an NxN chessboard so that no queens attack the same squares