Duplicate Zeros

Duplicate Zeros

Given a fixed-length integer array arr, duplicate each occurrence of zero, shifting the remaining elements to...

14 min read
Remove Duplicates from Sorted Array

Remove Duplicates from Sorted Array

Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once....

13 min read
Candy Crush

Candy Crush

This question is about implementing a basic elimination algorithm for Candy Crush.

24 min read
Find Numbers with Even Number of Digits

Find Numbers with Even Number of Digits

Given an array nums of integers, return how many of them contain an even number of digits.

12 min read
Add Two Numbers

Add Two Numbers

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order,...

21 min read
Max Consecutive Ones

Max Consecutive Ones

Given a binary array nums, return the maximum number of consecutive 1's in the array.

10 min read