摘要:
Russian Doll Envelopes (H) 题目 You are given a 2D array of integers envelopes where envelopes[i] = [wi, hi] represents the width and the height of an e 阅读全文
摘要:
Flip Binary Tree To Match Preorder Traversal (M) 题目 You are given the root of a binary tree with n nodes, where each node is uniquely assigned a value 阅读全文
摘要:
Reconstruct Original Digits from English (M) 题目 Given a non-empty string containing an out-of-order English representation of digits 0-9, output the d 阅读全文
摘要:
Palindromic Substrings (M) 题目 Given a string, your task is to count how many palindromic substrings in this string. The substrings with different star 阅读全文
摘要:
Word Subsets (M) 题目 We are given two arrays A and B of words. Each word is a string of lowercase letters. Now, say that word b is a subset of word a i 阅读全文
摘要:
Wiggle Subsequence (M) 题目 Given an integer array nums, return the length of the longest wiggle sequence. A wiggle sequence is a sequence where the dif 阅读全文
摘要:
Pacific Atlantic Water Flow (M) 题目 Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacif 阅读全文
摘要:
Advantage Shuffle (M) 题目 Given two arrays A and B of equal size, the advantage of A with respect to B is the number of indices i for which A[i] > B[i] 阅读全文
摘要:
3Sum With Multiplicity (M) 题目 Given an integer array arr, and an integer target, return the number of tuples i, j, k such that i < j < k and arr[i] + 阅读全文
摘要:
Vowel Spellchecker (M) 题目 Given a wordlist, we want to implement a spellchecker that converts a query word into a correct word. For a given query word 阅读全文