摘要:
问题:Given an array of N integer, find the length of the longest increasing subsequence.For example, given [1,-5,4,5,10,-1,-5,7], the longest increasing... 阅读全文
posted @ 2015-08-04 22:26
AndyJee
阅读(997)
评论(0)
推荐(0)
摘要:
题目:请实现一个函数用来找出字符流中第一个只出现一次的字符。例如,当从字符流中只读出前两个字符"go"时,第一个只出现一次的字符是"g"。当从该字符流中读出前六个字符“google"时,第一个只出现一次的字符是"l"。思路:字符流:像流水一样的字符,一去不复返,意味着只能访问一次。方法1:将字符流保... 阅读全文
posted @ 2015-08-04 21:24
AndyJee
阅读(3769)
评论(0)
推荐(0)

浙公网安备 33010602011771号