09 2015 档案

摘要:Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ... 阅读全文
posted @ 2015-09-30 14:08 momocoisapeach 阅读(151) 评论(0) 推荐(0)
摘要:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo... 阅读全文
posted @ 2015-09-30 14:04 momocoisapeach 阅读(107) 评论(0) 推荐(0)
摘要:Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ... 阅读全文
posted @ 2015-09-30 14:03 momocoisapeach 阅读(100) 评论(0) 推荐(0)
摘要:Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S = "ADOBECODE... 阅读全文
posted @ 2015-09-30 10:18 momocoisapeach 阅读(109) 评论(0) 推荐(0)
摘要:Longest Substring without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, the ... 阅读全文
posted @ 2015-09-30 09:03 momocoisapeach 阅读(112) 评论(0) 推荐(0)
摘要:implement strStr()Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.brute forcedon’t overlook t... 阅读全文
posted @ 2015-09-30 08:41 momocoisapeach 阅读(128) 评论(0) 推荐(0)
摘要:主要是看了这篇文章http://www.geeksforgeeks.org/union-find/总结下目前理解的Union-Find用在disjoint-set data structure上,disjoint-set keeps track of a set of elements partit... 阅读全文
posted @ 2015-09-29 06:22 momocoisapeach 阅读(207) 评论(0) 推荐(0)
摘要:在Peet's Coffe & Tea自习,昨天一天人都很多,吵得我看不进书,隔壁一桌亚裔的妈妈们一直在聊家长里短,喝咖啡喝了一个下午。今天却安静了很多,难道是因为周五下午?日子真是过得特别快,六月份的时候想着,九月结束前一定找到工作了吧,然而转眼九月快要结束了,并没有实现当时的愿望。现在想着,圣诞... 阅读全文
posted @ 2015-09-26 06:43 momocoisapeach 阅读(117) 评论(0) 推荐(0)
摘要:从六月到现在,四个月。六月从15号开始算起,磨磨蹭蹭的日子过到七月,一直到七月份拿到currenex的面试,两轮onsite,最后fail了,才开始意识到些什么。之前的我一直在害怕,虽然现在也怕,但是那个时候因为怕甚至不去尝试。直到八月13号,在墙上贴上时间表开始,日子才终于有了些痛的感觉。看着墙上... 阅读全文
posted @ 2015-09-24 08:23 momocoisapeach 阅读(105) 评论(0) 推荐(0)
摘要:1 public static void main(String[] args){2 System.out.println("Hello World!");3 } 阅读全文
posted @ 2015-09-21 10:05 momocoisapeach 阅读(154) 评论(0) 推荐(0)