All Posts

Pacific Atlantic Water Flow Problem

LeetCode 417. There is an m x n rectangular island...

Non-Negative Integers Without Consecutive Ones Problem

LeetCode 600. Given a positive integer n, return the number...

IPO Problem

LeetCode 502. Suppose LeetCode will start its IPO soon. In...

Frog Jump Problem

LeetCode 403. A frog is crossing a river. The river...

Freedom Trail Problem

LeetCode 514. In the video game Fallout 4, the quest...

Find The Closest Palindrome Problem

LeetCode 564. Given a string n representing an integer, return...

Erect The Fence Problem

LeetCode 587. You are given an array trees where trees[i]...


Valid Square Problem

LeetCode 593. Given the coordinates of four points in 2D...

Target Sum Problem

LeetCode 494. You are given an integer array nums and...

Sum Of Left Leaves Problem

LeetCode 404. Given the root of a binary tree, return...

Subtree Of Another Tree Problem

LeetCode 572. Given the roots of two binary trees root...

Student Attendance Record II Problem

LeetCode 552. An attendance record for a student can be...

Student Attendance Record I Problem

LeetCode 551. You are given a string s representing an...

String Compression Problem

LeetCode 443. Given an array of characters chars, compress it...

Split Array Largest Sum Problem

LeetCode 410. Given an array nums which consists of non-negative...


Sort Characters By Frequency Problem

LeetCode 451. Given a string s, sort it in decreasing...