All Posts

Heaters Problem

LeetCode 475. Winter is coming! During the contest, your first...

Hamming Distance Problem

LeetCode 461. The Hamming distance between two integers is the...

Generate Random Point In A Circle Problem

LeetCode 478. Given the radius and the position of the...

Fraction Addition And Subtraction Problem

LeetCode 592. Given a string expression representing an expression of...

Find Right Interval Problem

LeetCode 436. You are given an array of intervals, where...


Find Mode In Binary Search Tree Problem

LeetCode 501. Given the root of a binary search tree...

Find Largest Value In Each Tree Row Problem

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

Find Bottom Left Tree Value Problem

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

Find All Numbers Disappeared In An Array Problem

LeetCode 448. Given an array nums of n integers where...

Find All Duplicates In An Array Problem

LeetCode 442. Given an integer array nums of length n...

Find All Anagrams In A String Problem

LeetCode 438. Given two strings s and p, return an...

Fibonacci Number Problem

LeetCode 509. The Fibonacci numbers, commonly denoted F(n) form a...

Encode And Decode TinyURL Problem

LeetCode 535. TinyURL is a URL shortening service where you...


Distribute Candies Problem

LeetCode 575. Alice has n candies, where the i^th candy...

Diagonal Traverse Problem

LeetCode 498. Given an m x n matrix mat, return...