leetcode讲解--937. Reorder Log Files

2019-01-04
阅读 3 分钟
3k
You have an array of logs. Each log is a space delimited string of words.

leetcode讲解--953. Verifying an Alien Dictionary

2019-01-02
阅读 3 分钟
2.8k
In an alien language, surprisingly they also use english lowercase letters, but possibly in a different order. The order of the alphabet is some permutation of lowercase letters.

leetcode讲解--884. Uncommon Words from Two Sentences

2019-01-01
阅读 2 分钟
2.2k
We are given two sentences A and B. (A sentence is a string of space separated words. Each word consists only of lowercase letters.)

leetcode讲解--942. DI String Match

2018-12-18
阅读 2 分钟
2k
Given a string S that only contains "I" (increase) or "D" (decrease), let N = S.length.