算法
文章平均质量分 77
残血断剑
只要慢慢的领悟就能成为天下第一
展开
-
leetcode 376. Wiggle Subsequence
376. Wiggle Subsequence A sequence of numbers is called a wiggle sequence if the differences between succe原创 2016-11-14 11:05:02 · 205 阅读 · 0 评论 -
leetcode 412. Fizz Buzz
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原创 2016-11-17 00:41:22 · 249 阅读 · 0 评论 -
leetcode 371. Sum of Two Integers
371. Sum of Two Integers Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Example:Given a = 1 and b = 2, return 3. public class Solution原创 2016-11-17 22:00:47 · 348 阅读 · 0 评论 -
leetcode 136. Single Number
136. Single Number Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you imple原创 2016-11-17 22:10:45 · 184 阅读 · 0 评论 -
leetcode 344. Reverse String
344. Reverse StringWrite a function that takes a string as input and returns the string reversed.Example:Given s = "hello", return "olleh". 代码:public class Solution { public Str原创 2016-11-17 22:17:34 · 352 阅读 · 0 评论