自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 leetcode-Pascal's Triangle(I、II)

Problems: (1)Given numRows, generate the first numRows of Pascal’s triangle.For example, given numRows = 5Return: [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,

2016-06-06 08:10:23 231

原创 leetcode - climb steps

Question:You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?

2016-05-22 15:16:16 517

原创 leetcode - Majority Element

Problem: (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.You may assume that the array is non-empty

2016-05-05 21:54:12 185

原创 leetcode- Number of 1 bits, power of two, power of three

leetcode- Number of 1 bits, power of two, power of three

2016-04-23 22:13:10 291

原创 leetcode - ugly number, ugly number2, super ugly number

ugly number的题目

2016-04-21 20:15:06 217

原创 leetcode - Contains Duplicate

Problem: 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 array, and it should return false if every e

2016-04-14 21:50:45 203

原创 leetcode - roman to integer & integer to roman

leetcode - roman to integer & integer to roman

2016-04-13 10:30:06 184

原创 leetcode- Delete Node in a Linked List&Remove Linked List Elements

Problem: Delete Note in a LinkedList & Remove LinkedList Elements

2016-04-09 17:05:01 214

原创 leetcode - Valid Anagram

今天心情好,多刷一题,大家不要嫌弃我Question: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 = "ca

2016-04-01 22:30:07 158

原创 leetcode-Excel Sheet Column Title

说好的每天一刷,果然做不到,拖延症+懒癌晚期。好吧,趁着有时间赶快刷一题。Problem:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -

2016-04-01 21:35:41 178

原创 Leetcode-Move Zeroes

每天再忙还是要坚持刷题的,虽然只刷1-2道题,但是坚持下去就会有效果!【我真的不是在用心灵鸡汤在为自己刷的少找借口吗?】Question:Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the

2016-03-27 17:03:38 291

原创 Leetcode-Add Digits

本人正在努力加入浩浩荡荡的程序员组织,目前定位在数据挖掘与自然语言处理两块。但是无论如何,得先从leetcode做起。所以做过的题目,有空就往博客上丢,希望与大家一同进步!Problem:Given a non-negative integer num, repeatedly add all its digits until the result has only one di

2016-03-26 15:41:52 266

空空如也

空空如也

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

TA关注的人

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