摘要: 题目:There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course 0 you have to f... 阅读全文
posted @ 2015-06-01 20:45 可爱的波儿胖 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 题目:Remove all elements from a linked list of integers that have valueval.ExampleGiven:1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6,val= 6Return:1 --> 2 --> 3... 阅读全文
posted @ 2015-06-01 11:29 可爱的波儿胖 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a range [m, n] where 0 >= 1; n >>= 1; offset++; } return m << offset; }}参考链接:http://blog.csdn.... 阅读全文
posted @ 2015-06-01 10:47 可爱的波儿胖 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjace... 阅读全文
posted @ 2015-06-01 09:59 可爱的波儿胖 阅读(231) 评论(0) 推荐(0) 编辑

友情链接 : CodeForge源码分享