自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Leetcode ☞ 12. Integer to Roman ☆

将阿拉伯数字转换成罗马数字

2016-02-29 17:58:26 381

原创 Leetcode ☞ 191. Number of 1 Bits(hamming weight)

求一个无符整型数的汉明重量(二进制有多少个1)

2016-02-29 16:44:14 394

原创 Leetcode ☞ 1. Two Sum ☆ 【Hashmap】

给一数组和一target数,有两个元素的和为target。求这两个元素的下标的和。

2016-02-29 15:42:18 880

原创 Leetcode ☞ 8. String to Integer (atoi)

atoi,将char型字符串数字 转化为 int型数字。

2016-02-29 14:59:21 331

原创 Leetcode ☞ 287. Find the Duplicate Number ☆

给一长度为n+1的数组,元素取值为1~n。只有一个元素多次出现,找出那个元素。要求:不能改动数组。

2016-02-29 09:04:07 425

原创 Leetcode ☞ 13. Roman to Integer ☆

把罗马数字转换成阿拉伯数字。

2016-02-28 23:08:49 381

原创 C语言运算符优先级

C语言运算符

2016-02-28 21:07:44 507

原创 Leetcode ☞ 318. Maximum Product of Word Lengths ☆

给一char型数组,判断其中的各字符串是否含有相同元素,并给出长度乘积最大的结果。

2016-02-28 20:37:39 484

原创 Leetcode ☞ 268. Missing Number

给一数组,元素取自0,1,2,,,,n,且各不相同,找出缺失的那个数

2016-02-28 15:53:13 293

原创 Leetcode ☞ 319. Bulb Switcher ☆ brain teaser

灯泡开关 脑筋急转弯一样的题=。=

2016-02-28 13:28:01 633

原创 Leetcode ☞ 169. Majority Element

给定一个长度为n的数组, 找出出现了n/2以上的那个数字。

2016-02-28 11:12:45 391

原创 Leetcode ☞ 217. Contains Duplicate

判断一个数组里是否有重复的元素。

2016-02-27 23:23:25 344

原创 Leetcode ☞ 168. Excel Sheet Column Title ☆

excel里,把数字序号转换为字母序号。

2016-02-27 22:16:37 336

原创 Leetcode ☞ 171. Excel Sheet Column Number

将excel里字母序号转换为数字序号。

2016-02-27 22:11:18 358

原创 Leetcode ☞ 242. Valid Anagram ☆

给两个数组,判断第二个数组是不是第一个数组的乱序版。

2016-02-27 20:54:12 386

原创 Leetcode ☞ 122. Best Time to Buy and Sell Stock II

给一数组,第i位代表第i天的股票价格。求最大获利。

2016-02-27 13:17:10 332

原创 Leetcode ☞ 238. Product of Array Except Self ☆

输入数组nums,输出数组output里各位的值等于nums里除了自身外的乘积。要求:时间复杂度O(n),不许用除法。

2016-02-26 23:52:38 340

原创 Leetcode ☞ 283. Move Zeroes

网址:https://leetcode.com/problems/move-zeroes/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.For ex

2016-02-26 23:26:58 360

原创 Leetcode ☞ 258. Add Digits

网址:https://leetcode.com/problems/add-digits/258. Add DigitsMy SubmissionsQuestionTotal Accepted: 72085 Total Submissions: 149892 Difficulty: EasyGiven a non-negativ

2016-02-26 17:10:25 398

原创 Leetcode ☞ 260. Single Number III ☆☆☆

网址:https://leetcode.com/problems/single-number-iii/Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the

2016-02-26 16:10:13 365

原创 Leetcode ☞ 137. Single Number II ☆☆

网址:https://leetcode.com/problems/single-number-ii/137. Single Number IIMy SubmissionsQuestionTotal Accepted: 76234 Total Submissions: 206263 Difficulty: MediumGiven

2016-02-26 14:38:42 462

原创 Leetcode ☞ 136. Single Number

https://leetcode.com/problems/single-number/136. Single NumberMy SubmissionsQuestionTotal Accepted: 115703 Total Submissions: 237455 Difficulty: MediumGiven an arra

2016-02-26 10:18:40 339

原创 Leetcode ☞ 292. Nim Game

NIM游戏292. Nim GameMy SubmissionsQuestionTotal Accepted: 47343 Total Submissions: 91979 Difficulty: EasyYou are playing th

2016-02-24 17:09:06 555

空空如也

空空如也

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

TA关注的人

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