- 博客(26)
- 收藏
- 关注
转载 264. Ugly Number II
264. Ugly Number II Write a program to find then-th ugly number. Ugly numbers are positive numbers whose prime factors only include2, 3, 5. Fo...
2016-10-17 14:43:00
169
转载 263. Ugly Number
263. Ugly Number Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only i...
2016-10-17 14:32:00
153
转载 202. Happy Number
202. Happy Number Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting ...
2016-10-17 14:21:00
159
转载 326. Power of Three
326. Power of Three Given an integer, write a function to determine if it is a power of three. Follow up: Could you do it without using any loop...
2016-10-17 13:26:00
127
转载 206. Reverse Linked List
206. Reverse Linked List Reverse a singly linked list. /** * Definition for singly-linked list. * public class ListNode { * int val; * ...
2016-10-17 13:05:00
112
转载 405. Convert a Number to Hexadecimal
405. Convert a Number to Hexadecimal Given an integer, write an algorithm to convert it to hexadecimal. For negative integer,two’s complementme...
2016-10-17 12:42:00
173
转载 219. Contains Duplicate II
219. Contains Duplicate II Given an array of integers and an integerk, find out whether there are two distinct indicesiandjin the array such...
2016-10-16 23:16:00
102
转载 217. Contains Duplicate
217. Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appe...
2016-10-16 19:15:00
102
转载 169. Majority Element
169. Majority Element Given an array of sizen, find the majority element. The majority element is the element that appearsmore than⌊ n/2 ⌋tim...
2016-10-16 18:56:00
102
转载 137. Single Number II
137. Single Number II Given an array of integers, every element appearsthreetimes except for one. Find that single one. Note: Your algorithm s...
2016-10-16 18:13:00
119
转载 260. Single Number III
260. Single Number III Given an array of numbersnums, in which exactly two elements appear only once and all the other elements appear exactly t...
2016-10-16 18:03:00
94
转载 136. Single Number
136. Single Number Given an array of integers, every element appearstwiceexcept for one. Find that single one. Note: Your algorithm should hav...
2016-10-16 17:17:00
86
转载 387. First Unique Character in a String
387. 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, ...
2016-10-16 17:09:00
100
转载 242. Valid Anagram
242. Valid Anagram Given two stringssandt, write a function to determine iftis an anagram ofs. For example, s= "anagram",t= "nagaram", ...
2016-10-16 17:01:00
95
转载 412. Fizz Buzz
412. Fizz Buzz Write a program that outputs the string representation of numbers from 1 ton. But for multiples of three it should output “Fizz”...
2016-10-16 16:46:00
232
转载 66. Plus One
66. Plus One Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most sig...
2016-10-16 16:30:00
108
转载 20. Valid Parentheses
20. Valid Parentheses Difficulty:Easy Given a string containing just the characters'(',')','{','}','['and']', determine if the i...
2016-10-10 19:49:00
104
转载 3. Longest Substring Without Repeating Characters
3. Longest Substring Without Repeating Characters Difficulty:Medium Given a string, find the length of thelongest substringwithout repea...
2016-10-10 19:05:00
94
转载 338. Counting Bits
338. Counting Bits Difficulty:Medium Given a non negative integer numbernum. For every numbersiin the range0 ≤ i ≤ numcalculate the n...
2016-10-10 15:10:00
121
转载 82. Remove Duplicates from Sorted List II
82. Remove Duplicates from Sorted List II QuestionEditorial Solution Given a sorted linked list, delete all nodes that have duplicate numbers...
2016-10-10 13:03:00
109
转载 83. Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear onlyonce. For example, Given1->1->2, return1->2. Given...
2016-10-10 12:36:00
82
转载 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 le...
2016-10-07 20:14:00
87
转载 110. Balanced Binary Tree
原题: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which...
2016-10-07 17:28:00
58
转载 344. Reverse String
原题: 344. Reverse String QuestionEditorial Solution Difficulty:Easy Write a function that takes a string as input and returns the string rever...
2016-10-07 15:15:00
80
转载 1. Two Sum
原题 1. Two Sum Difficulty:Easy Given an array of integers, returnindicesof the two numbers such that they add up to a specific target. You m...
2016-10-07 14:26:00
85
转载 org/apache/commons/logging/LogFactory
刚刚开始学习java web开发,用的是spring boot的框架,在某一次运行的时候报错Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory,然后我一...
2016-07-31 13:37:00
1255
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅