上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: 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-10-22 17:45 Agentgamer 阅读(121) 评论(0) 推荐(0)
摘要: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is1 -> 2 -> 3 -> ... 阅读全文
posted @ 2015-10-22 00:13 Agentgamer 阅读(103) 评论(0) 推荐(0)
摘要: Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car", retur... 阅读全文
posted @ 2015-10-21 18:27 Agentgamer 阅读(251) 评论(0) 推荐(0)
摘要: Write a program to find then-th ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. For example,1, 2, 3, 4, 5, 6, 8... 阅读全文
posted @ 2015-10-21 17:57 Agentgamer 阅读(140) 评论(0) 推荐(0)
摘要: 需求 经常有这种情况,写代码的时候需要实验种想法,亟需一种playground 环境来玩耍。如果是前端的话可以打开chrome 的控制台,但是如果是Node 的话就比较麻烦了。我要打开我的存放试验代码的目录,创建新目录,创建js 文件,打开编辑器开始写代码。这一系列麻烦的流程直接导致我的生活质量下降... 阅读全文
posted @ 2015-10-12 17:15 Agentgamer 阅读(975) 评论(0) 推荐(1)
摘要: Ugly NumberTotal Accepted:20760Total Submissions:63208Difficulty:EasyWrite a program to check whether a given number is an ugly number.Ugly numbers ar... 阅读全文
posted @ 2015-10-09 20:10 Agentgamer 阅读(148) 评论(0) 推荐(0)
摘要: Happy NumberTotal Accepted:35195Total Submissions:106936Difficulty:EasyWrite an algorithm to determine if a number is "happy".A happy number is a numb... 阅读全文
posted @ 2015-10-09 18:11 Agentgamer 阅读(146) 评论(0) 推荐(0)
摘要: Isomorphic StringsTotal Accepted:30898Total Submissions:120944Difficulty:EasyGiven two stringssandt, determine if they are isomorphic.Two strings are ... 阅读全文
posted @ 2015-10-09 17:11 Agentgamer 阅读(137) 评论(0) 推荐(0)
摘要: Word PatternTotal Accepted:4627Total Submissions:17361Difficulty:EasyGiven apatternand a stringstr, find ifstrfollows the same pattern.Examples:patter... 阅读全文
posted @ 2015-10-09 16:42 Agentgamer 阅读(171) 评论(0) 推荐(0)
摘要: 需求 一直希望有一个工具,能够自动监测修改了代码库的哪些文件,然后替换远端代码库的相同文件。有这个需求的原因主要是经常需要在服务器上跑代码,但是因为开发环境和网络环境的关系,线上写代码并不是很方便,所以我经常在本地环境写代码然后scp 文件去远端。 为什么不用git?因为我不想每改几行代码就comm... 阅读全文
posted @ 2015-09-25 18:22 Agentgamer 阅读(1410) 评论(5) 推荐(1)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页