2015年8月11日

摘要: August 10, 2015有二种解法, Greedy算法, 和DP算法. 二种算法都通过leetcode online judge. 贪婪算法, 花了一个小时理解代码, 修改后很好理解.Problem statement:Find the contiguous subarray within a... 阅读全文
posted @ 2015-08-11 08:39 juliachen 阅读(176) 评论(0) 推荐(0) 编辑

2015年8月10日

摘要: August 7, 2015周日玩这个算法, 看到Javascript Array模拟Deque, 非常喜欢, 想用C#数组也模拟; 看有什么新的经历. 试了四五种方法, 花时间研究C# SortedList class. Try to get some workout on the C# prog... 阅读全文
posted @ 2015-08-10 13:03 juliachen 阅读(303) 评论(0) 推荐(0) 编辑

2015年8月7日

摘要: August 2, 2015在http://zzk.cnblogs.com/ 用"找一找", 花了几个小时, 找出比较好的Leetcode博客.Read the leetcode question and solutions:1. Find lowest common ancestor in bin... 阅读全文
posted @ 2015-08-07 12:40 juliachen 阅读(165) 评论(0) 推荐(0) 编辑

2015年8月3日

摘要: 我最喜欢的一本书 - 教我如何写可读的代码Two month fan of the book, from August - Oct. 2014; and then, started to practice code review, change the code to make it readabl... 阅读全文
posted @ 2015-08-03 03:15 juliachen 阅读(307) 评论(0) 推荐(0) 编辑
摘要: June 8, 2015我最喜欢的一道算法题目, 二行代码.编程序需要很强的逻辑思维, 多问几个为什么, 可不可以简化.想一想, 二行代码, 五分钟就可以搞定; 2015年网上大家热议的 Homebrew 的作者Max Howell面试Google 挂掉的一题, 二叉树反转, 七行代码, 相比二行代... 阅读全文
posted @ 2015-08-03 03:09 juliachen 阅读(243) 评论(0) 推荐(0) 编辑
摘要: June 22, 2015Given a number represented as an array of digits, plus one to the number.Leetcode: plus one, 喜欢这道题, 看看有哪些解法; 一个个试过来. (6种方法)Read the web b... 阅读全文
posted @ 2015-08-03 02:34 juliachen 阅读(281) 评论(0) 推荐(0) 编辑

2015年8月2日

摘要: July 6, 2015Problem statement:Word SearchGiven a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of ... 阅读全文
posted @ 2015-08-02 13:52 juliachen 阅读(163) 评论(0) 推荐(0) 编辑

2015年7月31日

摘要: July 28, 2015Problem statement:You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how m... 阅读全文
posted @ 2015-07-31 14:12 juliachen 阅读(147) 评论(0) 推荐(0) 编辑

2015年7月30日

摘要: July 16, 2015Problem statement:Longest Substring Without Repeating CharactersRead the blog:http://blog.csdn.net/fightforyourdream/article/details/1786... 阅读全文
posted @ 2015-07-30 14:40 juliachen 阅读(357) 评论(0) 推荐(0) 编辑
摘要: July 19, 2015Problem statement:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You m... 阅读全文
posted @ 2015-07-30 13:13 juliachen 阅读(512) 评论(0) 推荐(0) 编辑

导航