All Posts

Single Element In A Sorted Array Problem

LeetCode 540. You are given a sorted array consisting of...

Shortest Unsorted Continuous Subarray Problem

LeetCode 581. Given an integer array nums, you need to...

Serialize And Deserialize BST Problem

LeetCode 449. Serialization is converting a data structure or object...

Reverse Words In A String III Problem

LeetCode 557. Given a string s, reverse the order of...

Reverse String II Problem

LeetCode 541. Given a string s and an integer k,...

Reverse Pairs Problem

LeetCode 493. Given an integer array nums, return the number...

Reshape The Matrix Problem

LeetCode 566. In MATLAB, there is a handy function called...


Repeated Substring Pattern Problem

LeetCode 459. Given a string s, check if it can...

Remove K Digits Problem

LeetCode 402. Given string num representing a non-negative integer num,...

Remove Boxes Problem

LeetCode 546. You are given several boxes with different colors...

Relative Ranks Problem

LeetCode 506. You are given an integer array score of...

Reconstruct Original Digits From English Problem

LeetCode 423. Given a string s containing an out-of-order English...

Range Addition II Problem

LeetCode 598. You are given an m x n matrix...

Random Pick With Weight Problem

LeetCode 528. You are given a 0-indexed array of positive...

Random Flip Matrix Problem

LeetCode 519. There is an m x n binary grid...


Queue Reconstruction By Height Problem

LeetCode 406. You are given an array of people, people,...