2014年3月5日

3-5

摘要: 开始刷难度为3的题,明显感觉题的复杂度上升。如果不仔细思考,很难找到时间和空间都较优的解。除此之外,题本身也更需要思考理解。金典的非题部分水过了一遍,下一阶段主要刷leetcode和金典的题。多见题、多刷题才能熟练。看着自己干干瘪瘪的简历,感觉自己这么长时间都白读了。赶紧发论文吧……还好不是现在就找工作,没填满的简历还可以去填新的东西。感谢和我一起拼搏的兄弟们,向我提供帮助的哥们们,我们一起努力! 阅读全文

posted @ 2014-03-05 22:23 pengyu2003 阅读(112) 评论(0) 推荐(0)

ZigZag Conversion

摘要: The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I I GY I RAnd then read line by line:"PAHNAPLSIIGYIR"Write the code that will take a string and 阅读全文

posted @ 2014-03-05 22:11 pengyu2003 阅读(130) 评论(0) 推荐(0)

Longest Substring Without Repeating Characters

摘要: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the length of 1.这 阅读全文

posted @ 2014-03-05 21:22 pengyu2003 阅读(115) 评论(0) 推荐(0)

Add Two Numbers

摘要: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.Input:(2 -> 4 -> 3) + (5 -> 6 -> 4)Output:7 -> 0 -> 8简单链表题/** * Definition 阅读全文

posted @ 2014-03-05 10:36 pengyu2003 阅读(158) 评论(0) 推荐(0)

导航