上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页
摘要: 题目: 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 阅读(162) 评论(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) 编辑
摘要: 题目: 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 more letter 阅读全文
posted @ 2017-03-21 03:45 panini 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume 阅读全文
posted @ 2017-03-21 01:23 panini 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the 阅读全文
posted @ 2017-03-20 23:06 panini 阅读(209) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页