All Posts

Longest Uncommon Subsequence II Problem

LeetCode 522. Given an array of strings strs, return the...

Longest Uncommon Subsequence I Problem

LeetCode 521. Given two strings a and b, return the...

Longest Palindromic Subsequence Problem

LeetCode 516. Given a string s, find the longest palindromic...

Longest Palindrome Problem

LeetCode 409. Given a string s which consists of lowercase...

Longest Harmonious Subsequence Problem

LeetCode 594. We define a harmonious array as an array...


License Key Formatting Problem

LeetCode 482. You are given a license key represented as...

LFU Cache Problem

LeetCode 460. Design and implement a data structure for a...

Largest Palindrome Product Problem

LeetCode 479. Given an integer n, return the largest palindromic...

Keyboard Row Problem

LeetCode 500. Given an array of strings words, return the...

K-Th Smallest In Lexicographical Order Problem

LeetCode 440. Given two integers n and k, return the...

K-Diff Pairs In An Array Problem

LeetCode 532. Given an array of integers nums and an...

Island Perimeter Problem

LeetCode 463. You are given row x col grid representing...

Increasing Subsequences Problem

LeetCode 491. Given an integer array nums, return all the...


Implement Rand10() Using Rand7() Problem

LeetCode 470. Given the API rand7() that generates a uniform...