自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

原创 Rotate

Rotate an array of n elements to the right by k steps.

2015-10-24 20:23:56 341

转载 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

原创 Contains Duplicate && Contains Duplicate II

contains duplicates

2015-10-21 21:05:25 248

最优合并问题

给定k个序列s1,s2,s3,...,sk,用二路合并方法将k个序列合并为一个。假设将任意两个长度分别为n和m的序列合并为一个需要的代价是m+n-1,设计一个算法来确定合并这些序列的合并为一个的最大代价和最小代价。

2012-10-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除