LeetCode-3Sum
Given an integer array nums, return all the triplets numsi, numsj, numsk such that i != j, i != k, and j != k, and numsi + numsj + numsk == 0
Given an integer array nums, return all the triplets numsi, numsj, numsk such that i != j, i != k, and j != k, and numsi + numsj + numsk == 0
Given an array of integers nums and an integer target, return _indices of the two numbers such that they add up to target
Given a list of unique words, return all the pairs of the distinct indices i, j in the given list, so that the concatenation of the two words wordsi + wordsj is
Given an m x n board of characters and a list of strings words, return _all words on the board
Given an integer array nums, return the maximum result of numsi XOR numsj, where 0 ≤ i ≤ j < n
leetcode 211 Trie的添加及搜索
题目: In English, we have a concept called root, which can be followed by some other word to form another longer word - let’s call this word successor. For example, when the root "an" is followed by the successor word "other", we can form a new word "another". Given a dictionary consisting of many roots and a sentence consisting of words separated by spaces, replace all the successors in the sentence with the root forming it. If a successor can be replaced by more than one root, replace it with the root that has the shortest length. ...
Implement a MapSum class with insert, and sum methods
You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following definition:
Given a binary tree