![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
roguesir
非、典型算法攻城狮
展开
-
【LeetCode】65. Valid Number
65. Valid Number原创 2019-01-27 23:30:10 · 747 阅读 · 0 评论 -
【LeetCode】3. Longest Substring Without Repeating Characters
Introduce Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Examp...原创 2019-03-02 17:15:55 · 1261 阅读 · 0 评论 -
【LeetCode】70. Climbing Stairs
Introduction You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? Note: Given n will be...原创 2019-03-01 18:01:33 · 920 阅读 · 0 评论 -
【LeetCode】69. Sqrt(x)
Introduction Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return type is an integer, the decimal digits are truncat...原创 2019-03-01 18:00:43 · 942 阅读 · 0 评论 -
【LeetCode】67. Add Binary
Introduction Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example 1: Input: a = "11", b = "1" Output: "1...原创 2019-03-01 17:59:31 · 959 阅读 · 0 评论 -
【LeetCode】66. Plus One
introduction Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most significant digit is at the head of the list, and ...原创 2019-03-01 17:58:26 · 697 阅读 · 0 评论 -
【LeetCode】9. Palindrome Number
Introduction Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Input: 121 Output: true Example 2: Input: -121 Output: fal...原创 2019-03-01 17:55:17 · 652 阅读 · 0 评论 -
【LeetCode】7. Reverse Integer
Introduction Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Note: Assume we are ...原创 2019-03-01 17:54:00 · 620 阅读 · 0 评论 -
【LeetCode】90. Subsets II
90. Subsets II Introduce Given a collection of integers that might contain duplicates, nums, return al...原创 2019-02-27 21:29:33 · 607 阅读 · 2 评论 -
【LeetCode】58. Length of Last Word
58. Length of Last Word Introduce Given a string s consists of upper/lower-case alphabets and empty sp...原创 2019-02-27 21:06:25 · 574 阅读 · 0 评论 -
【LeetCode】78. Subsets
78. Subsets Introduce Given a set of distinct integers, nums, return all possible subsets (the power s...原创 2019-02-27 21:01:52 · 602 阅读 · 0 评论 -
LeetCode目录
LeetCode目录原创 2019-01-21 13:49:07 · 689 阅读 · 0 评论 -
【LeetCode】1.两数之和
1. Two Sum Introduction Given an array of integers, return indices of the two numbers such that they a...原创 2019-01-27 23:00:55 · 623 阅读 · 0 评论 -
【LeetCode】28. Implement strStr()
28. Implement strStr() Implement strStr(). Return the index of the first occurrence of needle in hayst...原创 2019-01-27 23:04:07 · 659 阅读 · 0 评论 -
【LeetCode】88. Merge Sorted Array
Introduction Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements initialized in nums1 and nums2 are m and n respectively. You may ...原创 2019-04-24 16:07:34 · 667 阅读 · 0 评论