摘要:
题目: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... 阅读全文
摘要:
题目: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... 阅读全文
摘要:
题目:Given a range [m, n] where 0 >= 1; n >>= 1; offset++; } return m << offset; }}参考链接:http://blog.csdn.... 阅读全文
摘要:
题目: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... 阅读全文