- 博客(12)
- 收藏
- 关注
原创 405. Convert a Number to Hexadecimal
原题网址:https://leetcode.com/problems/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-28 03:50:48 645
原创 415. Add Strings
原题网址:https://leetcode.com/problems/add-strings/ Given two non-negative numbers num1 and num2 represented as string, return the sum of num1 and num2. Note: The length of both num1 and num2
2016-10-28 02:04:11 327
原创 401. Binary Watch
原题网址:https://leetcode.com/problems/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 repr
2016-10-28 01:50:47 407
原创 409. Longest Palindrome
原题网址:https://leetcode.com/problems/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 let
2016-10-27 07:56:53 293
原创 387. First Unique Character in a String
原题网址:https://leetcode.com/problems/first-unique-character-in-a-string/ Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examp
2016-10-27 05:07:35 321
原创 404. Sum of Left Leaves
原题网址:https://leetcode.com/problems/sum-of-left-leaves/ Find the sum of all left leaves in a given binary tree. Example: 3 / \ 9 20 / \ 15 7 There are two left leaves in t
2016-10-27 04:51:54 305
原创 383. Ransom Note
原题网址:https://leetcode.com/problems/ransom-note/ Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the r
2016-10-27 04:13:14 853
原创 389. Find the Difference
原题网址:https://leetcode.com/problems/find-the-difference/ Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one m
2016-10-27 02:55:27 304
原创 412. Fizz Buzz
原题网址:https://leetcode.com/problems/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 n
2016-10-27 02:22:15 322
原创 422. Valid Word Square
原题网址:https://leetcode.com/problems/valid-word-square/ Given a sequence of words, check whether it forms a valid word square. A sequence of words forms a valid word square if the kth row and co
2016-10-27 02:09:40 400
原创 437. Path Sum III
原题网址:https://leetcode.com/problems/path-sum-iii/ You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does
2016-10-27 01:42:32 663
原创 LeetCode 438. Find All Anagrams in a String
原题网址:https://leetcode.com/problems/find-all-anagrams-in-a-string/ Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase Engl
2016-10-26 05:08:28 662
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人