归档 2018

[LeetCode]Shortest Distance to a Character

题目描述:

LeetCode 821. Shortest Distance to a Character

Given a string S and a character C, return an array of integers representing the shortest distance from the character C in the string.

Example 1:

Input: S = "loveleetcode", C ...

继续阅读

[LeetCode]Ambiguous Coordinates

题目描述:

LeetCode 816. Ambiguous Coordinates

We had some 2-dimensional coordinates, like "(1, 3)" or "(2, 0.5)".  Then, we removed all commas, decimal points, and spaces, and ended up with the string S.  Return a list of strings representing all possibilities ...

继续阅读

每月存档

去年

明年