摘要: 题目: 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 阅读全文
posted @ 2017-03-24 10:54 panini 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. 阅读全文
posted @ 2017-03-24 10:15 panini 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a non-empty string s and an abbreviation abbr, return whether the string matches with the given abbreviation. A string such as "word" contai 阅读全文
posted @ 2017-03-24 07:01 panini 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used. Note: Example 1: Example 阅读全文
posted @ 2017-03-24 06:05 panini 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 题目: Find the sum of all left leaves in a given binary tree. Example: 链接:https://leetcode.com/problems/sum-of-left-leaves/#/description 3/22/2017 perfo 阅读全文
posted @ 2017-03-24 05:15 panini 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 represe 阅读全文
posted @ 2017-03-24 04:46 panini 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 题目: Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... Note:n is positive and will fit within the range of a 3 阅读全文
posted @ 2017-03-24 03:20 panini 阅读(243) 评论(0) 推荐(0) 编辑