C++
BishopTylaor
这个作者很懒,什么都没留下…
展开
-
LeetCode.36.Valid Sudoku
原题链接:Valid Sudoku 题目内容:Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled with the character ‘.’. A...原创 2018-03-23 17:19:53 · 124 阅读 · 0 评论 -
LeetCode.1.Two Sum
原题链接:Two Sum 题目内容:Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you ma...原创 2018-03-20 18:09:49 · 96 阅读 · 0 评论 -
LeetCode.283.Move Zeroes
原题链接:Move Zeroes 题目内容:Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements. For example, given nums = [0, 1, 0, 3, 12]...原创 2018-03-19 19:04:46 · 113 阅读 · 0 评论 -
LeetCode.66.Plus One
原题链接:Plus One 题目内容:Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leading zero, except the number 0 i...原创 2018-03-16 11:25:02 · 123 阅读 · 0 评论 -
LeetCode.28.Implement strStr()
原题链接:Implement strStr() 题目内容: Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: Input: haystack = “hello”, needle = “ll” Out...原创 2018-04-08 19:26:53 · 110 阅读 · 0 评论 -
LeetCode.7.Reverse Integer
原题链接:Reverse Integer 题目内容: 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:...原创 2018-04-10 15:04:19 · 139 阅读 · 0 评论 -
LeetCode.8.String to Integer (atoi)
原题链接:String to Integer (atoi) 题目内容: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask your...原创 2018-04-10 16:45:05 · 99 阅读 · 0 评论 -
LeetCode.88.Merge Sorted Array
原题链接:Merge Sorted Array 题目内容: 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 r...原创 2018-05-07 17:51:00 · 129 阅读 · 0 评论