2015年4月26日

Binary Tree Right Side View

摘要: Binary Tree Right Side View问题:Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered... 阅读全文

posted @ 2015-04-26 22:41 zhouzhou0615 阅读(124) 评论(0) 推荐(0) 编辑

Remove Linked List Elements

摘要: Remove Linked List Elements问题: Remove all elements from a linked list of integers that have valueval.思路: 简单的链表操作我的代码:public class Solution { publ... 阅读全文

posted @ 2015-04-26 22:10 zhouzhou0615 阅读(133) 评论(0) 推荐(0) 编辑

House Robber

摘要: House Robber问题:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constra... 阅读全文

posted @ 2015-04-26 22:03 zhouzhou0615 阅读(160) 评论(0) 推荐(0) 编辑

Happy Number

摘要: Happy Number问题:Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any p... 阅读全文

posted @ 2015-04-26 21:37 zhouzhou0615 阅读(198) 评论(0) 推荐(0) 编辑

出差回来--快速排序

摘要: 被导师派出差加上之前的大摩的面试,两周的时间都在飞机或者火车上,弄的回到学校浮躁,状态不是很好。 调整状态最好的办法就是去做了,今天下午写了一下,一直不愿意写的快速排序算法,分享一下~public class QuickSort { /** * @param args *... 阅读全文

posted @ 2015-04-26 16:44 zhouzhou0615 阅读(148) 评论(0) 推荐(0) 编辑

导航