Algorithm Challenges

Improve your problem-solving skills by tackling these algorithm challenges. From sorting and searching to dynamic programming and greedy algorithms.

Searching

Easy

Two Sum

Find two numbers in an array that add up to a specific target.

Arrays
Hash Table
Easy

Binary Search

Implement the binary search algorithm to find an element in a sorted array.

Arrays
Binary Search
Divide and Conquer

Sorting

Medium

Merge Sort

Implement the merge sort algorithm to sort an array.

Arrays
Sorting
Divide and Conquer
Medium

Quick Sort

Implement the quick sort algorithm to sort an array.

Arrays
Sorting
Divide and Conquer

Dynamic Programming

Easy

Fibonacci Sequence

Generate the Fibonacci sequence using dynamic programming.

Dynamic Programming
Math
Medium

Longest Common Subsequence

Find the longest subsequence common to two sequences.

Dynamic Programming
Strings
Hard

0/1 Knapsack Problem

Solve the 0/1 Knapsack problem using dynamic programming.

Dynamic Programming
Optimization

Greedy Algorithms

Hard

Dijkstra's Algorithm

Implement Dijkstra's algorithm to find the shortest path in a graph.

Graphs
Shortest Path
Greedy