Coding Problems

Practice with our curated collection of coding problems ranging from easy to advanced levels.

Easy

Two Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

Array Hash Table
85% Solved 4.5
Medium

Add Two Numbers

You are given two non-empty linked lists representing two non-negative integers.

Linked List Math
65% Solved 4.2
Hard

Median of Two Sorted Arrays

Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).

Array Binary Search
35% Solved 4.8
Medium

Longest Substring Without Repeating Characters

Given a string, find the length of the longest substring without repeating characters.

String Sliding Window
55% Solved 4.3
Hard

Regular Expression Matching

Implement regular expression matching with support for '.' and '*'.

String Dynamic Programming
28% Solved 4.7
Easy

Reverse Integer

Given a 32-bit signed integer, reverse digits of an integer.

Math
78% Solved 3.9