- 博客(11)
- 资源 (1)
- 收藏
- 关注
原创 Majority Element
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.
2015-10-29 16:23:33 320
原创 Merge Sorted Array
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
2015-10-28 22:26:21 292
原创 Move Zeros
Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.
2015-10-28 21:31:36 382
原创 Pascal's Triangle && Pascal's Triangle II
Given numRows, generate the first numRows of Pascal’s triangle.
2015-10-28 21:01:59 368
原创 Summary Ranges
Given a sorted integer array without duplicates, return the summary of its ranges.
2015-10-27 16:24:56 254
原创 Remove Duplicates from sorted array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
2015-10-26 20:51:29 312
原创 Remove Element
Given an array and a value, remove all instances of that value in place and return the new length.
2015-10-26 20:29:45 267
原创 Ubuntu14.04下hadoop2.6.0集群安装
Setup Hadoop On Ubuntu 14.04 Linux —Multi-Node Cluster
2015-10-24 20:57:22 481
转载 Plus One
Given a non-negative number represented as an array of digits, plus one to the number.用一个数组来代表一个非负整数,对这个整数进行+1操作。
2015-10-22 10:33:48 308
最优合并问题
2012-10-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人