- 博客(5)
- 收藏
- 关注
原创 hadoop搭建问题
Hadoop平台搭建过程及问题解决 使用VM: 文件: 注:hadoop不能下载-src版本的:得编译,不能直接用,非-src的改配置文件就可以直接用。 CentOS自带的JDK不能用,得下载oracle的。 下载链接: http://ftp.agdsn.de/pub/mirrors/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.is...
2019-05-25 20:49:51 252
原创 204. Count Primes Python代码
Count the number of prime numbers less than a non-negative number, n. Example: Input: 10 Output: 4 Explanation: There are 4 prime numbers less than 10, they are 2, 3, 5, 7. 算法的思想就是以此通过:22,33,44,55…ii;...
2019-05-21 11:17:14 284
原创 859. Buddy Strings Python代码
Given two strings A and B of lowercase letters, return true if and only if we can swap two letters in A so that the result equals B. Example 1: Input: A = “ab”, B = “ba” Output: true Example 2: Input:...
2019-05-17 18:35:34 185
原创 559. Maximum Depth of N-ary Tree Python代码
Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. For example, given a 3-ary tree: We shou...
2019-05-16 20:38:12 470
原创 665. Non-decreasing Array Python代码
Non-decreasing Array Given an array with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. We define an array is non-decreasing if array[i] <= ar...
2019-05-16 16:59:47 196
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人