上一页 1 ··· 159 160 161 162 163 164 165 166 167 ··· 273 下一页
摘要: Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other wo 阅读全文
posted @ 2018-04-14 11:55 bonelee 阅读(381) 评论(0) 推荐(0)
摘要: from:https://www.cnblogs.com/justinh/p/7716421.html Trie,又经常叫前缀树,字典树等等。它有很多变种,如后缀树,Radix Tree/Trie,PATRICIA tree,以及bitwise版本的crit-bit tree。当然很多名字的意义其实 阅读全文
posted @ 2018-04-14 10:52 bonelee 阅读(53864) 评论(1) 推荐(7)
摘要: features = sc.parallelize(data_group[idx]).map(lambda x: (x.host_ip+'^'+x.domain, 1)).reduceByKey(operator.add).map(get_domain_features) def get_domai 阅读全文
posted @ 2018-04-13 11:02 bonelee 阅读(592) 评论(0) 推荐(0)
摘要: http://bdsmdvdtube.com/ 阅读全文
posted @ 2018-04-12 16:20 bonelee 阅读(54465) 评论(0) 推荐(0)
摘要: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive intege 阅读全文
posted @ 2018-04-11 23:10 bonelee 阅读(426) 评论(0) 推荐(0)
摘要: 解决方案 1、利用vi编辑器打开 /etc/bash.bashrc文件(需要root权限) sudo vi /etc/bash.bashrc 2、找到文件中的下列代码 #enable bash completion in interactive shells #if ! shopt -oq posi 阅读全文
posted @ 2018-04-11 10:40 bonelee 阅读(2652) 评论(0) 推荐(0)
摘要: Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly two or zero sub-node. 阅读全文
posted @ 2018-04-10 23:35 bonelee 阅读(231) 评论(0) 推荐(0)
摘要: 发现自己写python的空格split还挺多坎的,尤其是最后一个是空格的情形: 阅读全文
posted @ 2018-04-09 10:11 bonelee 阅读(385) 评论(0) 推荐(0)
摘要: Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This 阅读全文
posted @ 2018-04-08 21:40 bonelee 阅读(280) 评论(0) 推荐(0)
摘要: In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as 阅读全文
posted @ 2018-04-06 22:41 bonelee 阅读(367) 评论(0) 推荐(0)
上一页 1 ··· 159 160 161 162 163 164 165 166 167 ··· 273 下一页