- 博客(5)
- 收藏
- 关注
原创 Word Ladder
Word Ladder题目描述Given two words (beginWord and endWord), and a dictionary’s word list, find the length of shortest transformation sequence from beginWord to endWord, such that:Only one letter can be...
2018-10-15 22:20:55 95
原创 Jump Game
Jump GameGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Determi...
2018-10-15 20:08:42 152
原创 Bus of Character
Bus of Characters题目描述In the Bus of Characters there are n rows of seat, each having 2 seats. The width of both seats in the i-th row is wi centimeters. All integers wi are distinct.Initially the bu...
2018-10-15 14:35:34 174
原创 最长上升子序列(笔记)
最长上升子序列问题描述一个数的序列 ai ,当 a1< a 2< … < … <aS的时候,我们称这个序 列 是上升的。对于给定一个序列(a 1, a 2, …, , …, , …, aN),我们可以得到 一些上升的子序列 (ai1 , ai2 , …, aiK ),这里 1 <= i1 < i2 … iK <= N 。比如,对于序列 (1, 7...
2018-10-03 18:00:13 125
原创 Minimum Ternary String
Minimum Ternary String题目描述You are given a ternary string (it is a string which consists only of characters ‘0’, ‘1’ and ‘2’).You can swap any two adjacent (consecutive) characters ‘0’ and ‘1’ (i.e....
2018-10-02 13:39:16 179
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人