- 博客(17)
- 收藏
- 关注
原创 405. Convert a Number to Hexadecimal
Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used.
2016-10-25 15:57:43 206
原创 413. Arithmetic Slices
return the number of arithmetic slices in the array A.
2016-10-25 14:46:15 167
原创 Android 努比亚Z9min root 以及 data文件夹读写权限开放
Android 努比亚Z9min root 以及 data文件夹读写权限开放
2016-10-19 22:07:30 1061
原创 Android 在win8的cmd中输入adb shell提示不是内部或外部命令
Android 在win8的cmd中输入adb shell提示不是内部或外部命令
2016-10-19 22:03:02 1242
原创 419. Battleships in a Board
Given an 2D board, count how many different battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. You may assume the following rules:You receive a valid board, made of only battleships or empty slots.Ba
2016-10-18 23:18:47 231
原创 412. Fizz Buzz
Write a program that outputs the string representation of numbers from 1 to n.But for multiples of three it should output “Fizz” instead of the number and for the multiples of five output “Buzz”. For numbers which are multiples of both three and five out
2016-10-18 22:38:52 192
原创 6. ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
2016-10-10 22:59:54 249
转载 401. Binary Watch
A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59).Each LED represents a zero or one, with the least significant bit on the right.
2016-10-09 20:25:34 316
原创 409. Longest Palindrome
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.This is case sensitive, for example "Aa" is not considered a palindrome here.
2016-10-09 19:38:12 394
原创 415. Add Strings
Given two non-negative numbers num1 and num2 represented as string, return the sum of num1 and num2.
2016-10-09 18:44:18 381
原创 404. Sum of Left Leaves
Find the sum of all left leaves in a given binary tree.
2016-10-08 20:37:33 755
原创 406. Queue Reconstruction by Height
Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in front of this person who have a height greater than or equal to h. Wri
2016-10-07 11:10:36 1274
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人