上一页 1 ··· 163 164 165 166 167 168 169 170 171 ··· 274 下一页
摘要: Reverse a singly linked list. click to show more hints. 精简下代码: 递归解: dfs 记得程序员面试金典里专门提过! 阅读全文
posted @ 2018-04-01 16:46 bonelee 阅读(156) 评论(0) 推荐(0)
摘要: Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal", "Sil 阅读全文
posted @ 2018-04-01 12:29 bonelee 阅读(182) 评论(0) 推荐(0)
摘要: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr 阅读全文
posted @ 2018-04-01 10:36 bonelee 阅读(140) 评论(0) 推荐(0)
摘要: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: s = "leetcode" return 0. 阅读全文
posted @ 2018-03-30 22:32 bonelee 阅读(249) 评论(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 is 1 -> 2 -> 3 - 阅读全文
posted @ 2018-03-30 22:08 bonelee 阅读(191) 评论(0) 推荐(0)
摘要: Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a g 阅读全文
posted @ 2018-03-30 22:05 bonelee 阅读(189) 评论(0) 推荐(0)
摘要: 例如: python dig_ip.py 8264.comRecursive name lookup (simulates dig)...8264.com cname is qaz2d84guo7uz5q2.gfnormal01at.com.[u'121.29.18.91'] =>IP地址 pyth 阅读全文
posted @ 2018-03-30 11:05 bonelee 阅读(1665) 评论(0) 推荐(0)
摘要: Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree. Exa 阅读全文
posted @ 2018-03-29 23:12 bonelee 阅读(476) 评论(0) 推荐(0)
摘要: Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagram", t = "nagaram", return true. s = "rat", t 阅读全文
posted @ 2018-03-29 22:29 bonelee 阅读(177) 评论(0) 推荐(0)
摘要: 最近DGA检出了一堆阿里高防的域名,例如:u3mbyv2siyaw2tnm.gfnormal09aq.com,然后专门查找了下相关文档。 例如 8264.com 这个网站启用了aliyun的高防DDoS。 dig 8264.com 可以看到:; <<>> DiG 9.10.3-P4-Ubuntu < 阅读全文
posted @ 2018-03-29 19:25 bonelee 阅读(847) 评论(0) 推荐(0)
上一页 1 ··· 163 164 165 166 167 168 169 170 171 ··· 274 下一页