Skip to the content

Coding challenges in Python and JavaScript

Each challenge is a function you write and a set of tests it passes or fails. They are sorted by Big-O, from the most direct ones to what you get asked in an interview. Pick one, read the problem and solve it in your browser: there is nothing to install.

O(1) · Trivial

59 challenges · Free

O(log n) · Easy

24 challenges · Free

O(n) · Medium

77 challenges · Full plan

O(n log n) · Hard

45 challenges · Full plan

O(n²) · Very hard

58 challenges · Full plan

O(2ⁿ) · Legendary

25 challenges · Full plan