Rebranding Problem Description The name of one small but proud corporation consists of n lowercase English letters. The Corporation has decided to try ...
分类:
其他好文 时间:
2017-03-09 22:58:06
阅读次数:
420
Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially adja ...
分类:
其他好文 时间:
2017-03-07 22:51:51
阅读次数:
225
Design a data structure that supports the following two operations: search(word) can search a literal word or a regular expression string containing o ...
分类:
其他好文 时间:
2017-03-07 20:53:22
阅读次数:
185
A message containing letters from A-Z is being encoded to numbers using the following mapping: Given an encoded message containing digits, determine t ...
分类:
其他好文 时间:
2017-03-03 01:36:42
阅读次数:
170
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the ...
分类:
其他好文 时间:
2017-03-01 14:05:02
阅读次数:
199
D. String Game Little Nastya has a hobby, she likes to remove some letters from word, to obtain another word. But it turns out to be pretty hard for h ...
分类:
其他好文 时间:
2017-02-27 20:39:44
阅读次数:
543
Description Little Nastya has a hobby, she likes to remove some letters from word, to obtain another word. But it turns out to be pretty hard for her, ...
分类:
其他好文 时间:
2017-02-27 01:14:31
阅读次数:
314
https://leetcode.com/problems/remove-duplicate-letters/?tab=Description 看了Discuss的解答。是用了递归,先找出第一个字符,然后去掉这个字符并且递归。 但是如果只有26个字母,其实是不是可以这样。 先遍历一遍,看到各个字母出 ...
分类:
其他好文 时间:
2017-02-24 19:36:12
阅读次数:
256
Python 位操作: 按位与 &, 按位或 | 体会不到 按位异或 ^ 左移 << 右移 >> 取反 ~ 1. Single Number Given an array of integers, every element appears twice except for one. Find th ...
分类:
编程语言 时间:
2017-02-23 00:35:42
阅读次数:
234
In order to teach her young calvess the order of the letters in the alphabet, Bessie has come up with a game to play with them. The calves are given a ...
分类:
其他好文 时间:
2017-02-21 20:51:52
阅读次数:
240