2015年3月16日

Count and Say

摘要: Count and Say问题:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11i... 阅读全文

posted @ 2015-03-16 21:26 zhouzhou0615 阅读(130) 评论(0) 推荐(0)

Add Binary

摘要: Add Binary问题:Given two binary strings, return their sum (also a binary string).思路: 归并排序收尾工作我的代码:public class Solution { public String addBinary(St... 阅读全文

posted @ 2015-03-16 16:30 zhouzhou0615 阅读(117) 评论(0) 推荐(0)

Clone Graph

摘要: Clone Graph问题:Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.思路: dfs 或者 bfs我的代码1:(dfs)public class Solut... 阅读全文

posted @ 2015-03-16 16:04 zhouzhou0615 阅读(130) 评论(0) 推荐(0)

Longest Substring Without Repeating Characters

摘要: Longest Substring Without Repeating Characters问题:Given a string, find the length of the longest substring without repeating characters. For example, t... 阅读全文

posted @ 2015-03-16 09:00 zhouzhou0615 阅读(204) 评论(0) 推荐(0)

导航