![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode刷题记录
gunsmoke
这个作者很懒,什么都没留下…
展开
-
leetCode刷题记录之788. Rotated Digits
题目X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be rotated - we cannot choose to leave it alone.A numb...原创 2020-03-06 21:01:50 · 100 阅读 · 0 评论 -
leetCode刷题记录51_400_Nth Digit
/*****************************************************问题描述*************************************************Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...N...原创 2019-03-26 13:45:29 · 101 阅读 · 0 评论 -
leetCode刷题记录52_414_Third Maximum Number
/*****************************************************问题描述*************************************************Given a non-empty array of integers, return the third maximum number in this array. If it do...原创 2019-03-26 14:36:05 · 110 阅读 · 0 评论 -
leetCode刷题记录53_415_Add Strings
/*****************************************************问题描述*************************************************Given two non-negative integers num1 and num2 represented as string, return the sum of num1 ...原创 2019-03-26 15:55:15 · 114 阅读 · 0 评论 -
leetCode刷题记录62_496_Next Greater Element I
/*****************************************************问题描述*************************************************You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are sub...原创 2019-04-04 09:09:51 · 129 阅读 · 0 评论 -
leetCode刷题记录63_500_Keyboard Row
/*****************************************************问题描述*************************************************Given a List of words, return the words that can be typed using letters of alphabet on only ...原创 2019-04-04 09:11:02 · 137 阅读 · 0 评论 -
leetCode刷题记录64_504_Base 7
/*****************************************************问题描述*************************************************Given an integer, return its base 7 string representation.Example 1: Input: 100 Out...原创 2019-04-04 09:11:49 · 153 阅读 · 0 评论 -
leetCode刷题记录65_506_Relative Ranks
/*****************************************************问题描述*************************************************Given scores of N athletes, find their relative ranks and the people with the top three high...原创 2019-04-04 09:13:27 · 114 阅读 · 0 评论 -
leetCode刷题记录66_507_Perfect Number
/*****************************************************问题描述*************************************************We define the Perfect Number is a positive integer that is equal to the sum of all its posit...原创 2019-04-04 09:15:12 · 122 阅读 · 0 评论 -
leetCode刷题记录50_389_Find the Difference
/*****************************************************问题描述*************************************************Given two strings s and t which consist of only lowercase letters.String t is generated by ...原创 2019-03-06 08:58:28 · 100 阅读 · 0 评论 -
leetCode刷题记录43_292_Nim Game
/*****************************************************问题描述*************************************************You are playing the following Nim Game with your friend: There is a heap of stones on the ta...原创 2019-03-06 08:51:35 · 109 阅读 · 0 评论 -
leetCode刷题记录44_326_Power of Three
/*****************************************************问题描述*************************************************Given an integer, write a function to determine if it is a power of three.Example 1: In...原创 2019-03-06 08:52:42 · 71 阅读 · 0 评论 -
leetCode刷题记录45_342_Power of Four
/*****************************************************问题描述*************************************************Given an integer (signed 32 bits), write a function to check whether it is a power of 4.Exa...原创 2019-03-06 08:53:39 · 99 阅读 · 0 评论 -
leetCode刷题记录46_344_Reverse String
/*****************************************************问题描述*************************************************Write a function that reverses a string. The input string is given as an array of characters...原创 2019-03-06 08:54:36 · 185 阅读 · 0 评论 -
leetCode刷题记录47_367_Valid Perfect Square
/*****************************************************问题描述*************************************************Given a positive integer num, write a function which returns True if num is a perfect square...原创 2019-03-06 08:55:34 · 119 阅读 · 0 评论 -
leetCode刷题记录48_371_Sum of Two Integers
/*****************************************************问题描述*************************************************Calculate the sum of two integers a and b, but you are not allowed to use the operator + and...原创 2019-03-06 08:56:43 · 155 阅读 · 0 评论 -
leetCode刷题记录49_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 do...原创 2019-03-06 08:57:33 · 104 阅读 · 0 评论 -
leetCode刷题记录67_509_Fibonacci Number
/*****************************************************问题描述*************************************************The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence,...原创 2019-04-04 09:16:07 · 109 阅读 · 0 评论 -
leetCode刷题记录68_520_Detect Capital
/*****************************************************问题描述*************************************************Given a word, you need to judge whether the usage of capitals in it is right or not.We defi...原创 2019-04-04 11:36:12 · 151 阅读 · 0 评论 -
leetCode刷题记录72_633_Sum of Square Numbers
/*****************************************************问题描述*************************************************Given a non-negative integer c, your task is to decide whether there're two integers a and b...原创 2019-04-08 15:53:55 · 108 阅读 · 0 评论 -
leetCode刷题记录73_643_Maximum Average Subarray I
/*****************************************************问题描述*************************************************Given an array consisting of n integers, find the contiguous subarray of given length k that...原创 2019-04-08 15:54:50 · 178 阅读 · 0 评论 -
leetCode刷题记录74_645_Set Mismatch
/*****************************************************问题描述*************************************************The set S originally contains numbers from 1 to n. But unfortunately, due to the data error,...原创 2019-04-08 15:55:55 · 132 阅读 · 0 评论 -
leetCode刷题记录75_665_Non-decreasing Array
/*****************************************************问题描述*************************************************Given an array with n integers, your task is to check if it could become non-decreasing by m...原创 2019-04-08 15:56:41 · 175 阅读 · 0 评论 -
leetCode刷题记录76_674_Longest Continuous Increasing Subsequence
/*****************************************************问题描述*************************************************Given an unsorted array of integers, find the length of longest continuous increasing subseq...原创 2019-04-08 15:57:31 · 109 阅读 · 0 评论 -
leetCode刷题记录77_693_Binary Number with Alternating Bits
/*****************************************************问题描述*************************************************Given a positive integer, check whether it has alternating bits: namely, if two adjacent bit...原创 2019-04-08 15:58:20 · 116 阅读 · 0 评论 -
leetCode刷题记录60_485_Max Consecutive Ones
/*****************************************************问题描述*************************************************Given a binary array, find the maximum number of consecutive 1s in this array.Example 1:...原创 2019-04-03 11:47:56 · 146 阅读 · 0 评论 -
leetCode刷题记录61_492_Construct the Rectangle
/*****************************************************问题描述*************************************************For a web developer, it is very important to know how to design a web page's size. So, given...原创 2019-04-03 11:48:46 · 142 阅读 · 0 评论 -
leetCode刷题记录71_561_Array Partition I
/*****************************************************问题描述*************************************************Given an array of 2n integers, your task is to group these integers into n pairs of integer,...原创 2019-04-08 09:04:09 · 109 阅读 · 0 评论 -
leetCode刷题记录70_557_Reverse Words in a String III
/*****************************************************问题描述*************************************************Given a string, you need to reverse the order of characters in each word within a sentence w...原创 2019-04-08 09:01:27 · 107 阅读 · 0 评论 -
leetCode刷题记录54_441_Arranging Coins
/*****************************************************问题描述*************************************************You have a total of n coins that you want to form in a staircase shape, where every k-th row...原创 2019-03-26 17:37:37 · 111 阅读 · 0 评论 -
leetCode刷题记录55_443_String Compression
/*****************************************************问题描述*************************************************Given an array of characters, compress it in-place.The length after compression must always...原创 2019-03-27 11:37:20 · 174 阅读 · 0 评论 -
leetCode刷题记录56_448_Find All Numbers Disappeared in an Array
/*****************************************************问题描述*************************************************Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twic...原创 2019-03-27 13:23:31 · 104 阅读 · 0 评论 -
leetCode刷题记录57_459_Repeated Substring Pattern
/*****************************************************问题描述*************************************************Given a non-empty string check if it can be constructed by taking a substring of it and appe...原创 2019-03-27 17:27:45 · 145 阅读 · 0 评论 -
leetCode刷题记录58_461_Hamming Distance
/*****************************************************问题描述*************************************************The Hamming distance between two integers is the number of positions at which the correspond...原创 2019-04-01 13:50:32 · 144 阅读 · 0 评论 -
leetCode刷题记录59_476_Number Complement
/*****************************************************问题描述*************************************************Given a positive integer, output its complement number. The complement strategy is to flip t...原创 2019-04-01 15:09:41 · 110 阅读 · 0 评论 -
leetCode刷题记录68_532_K-diff Pairs in an Array
/*****************************************************问题描述*************************************************Given an array of integers and an integer k, you need to find the number of unique k-diff pa...原创 2019-04-08 08:58:45 · 131 阅读 · 0 评论 -
leetCode刷题记录69_551_Student Attendance Record I
/*****************************************************问题描述*************************************************You are given a string representing an attendance record for a student. The record only cont...原创 2019-04-08 09:00:00 · 113 阅读 · 0 评论 -
leetCode刷题记录42_290_Word Pattern
/*****************************************************问题描述*************************************************Given a pattern and a string str, find if str follows the same pattern.Here follow means a ...原创 2019-03-06 08:50:22 · 95 阅读 · 0 评论 -
leetCode刷题记录41_283_Move Zeroes
/*****************************************************问题描述*************************************************Given an array nums, write a function to move all 0's to the end of it while maintaining the...原创 2019-02-26 17:23:17 · 133 阅读 · 0 评论 -
leetCode刷题记录40_278_First Bad Version
/*****************************************************问题描述*************************************************You are a product manager and currently leading a team to develop a new product. Unfortunate...原创 2019-02-26 17:21:57 · 95 阅读 · 0 评论