上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 77 下一页
摘要: [抄题]: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums e 阅读全文
posted @ 2018-05-05 17:12 苗妙苗 阅读(141) 评论(0) 推荐(0)
摘要: [抄题]: Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. The matching should cover the e 阅读全文
posted @ 2018-05-05 09:15 苗妙苗 阅读(194) 评论(0) 推荐(0)
摘要: [抄题]: TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such a 阅读全文
posted @ 2018-05-04 21:08 苗妙苗 阅读(152) 评论(0) 推荐(0)
摘要: [抄题]: Reverse bits of a given 32 bits unsigned integer. Example: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇葩corner case]: [思维问题]: [一句话思路]: 32 阅读全文
posted @ 2018-05-04 11:38 苗妙苗 阅读(164) 评论(0) 推荐(0)
摘要: [抄题]: Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: Example 阅读全文
posted @ 2018-05-04 11:14 苗妙苗 阅读(238) 评论(0) 推荐(0)
摘要: [抄题]: Given an m * n matrix M initialized with all 0's and several update operations. Operations are represented by a 2D array, and each operation is 阅读全文
posted @ 2018-05-03 21:36 苗妙苗 阅读(154) 评论(0) 推荐(0)
摘要: [抄题]: We define the Perfect Number is a positive integer that is equal to the sum of all its positive divisors except itself. Now, given an integer n, 阅读全文
posted @ 2018-05-03 17:06 苗妙苗 阅读(242) 评论(0) 推荐(0)
摘要: [抄题]: Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c. Example 1: Example 2: [暴力解法] 阅读全文
posted @ 2018-05-03 16:23 苗妙苗 阅读(386) 评论(0) 推荐(0)
摘要: [抄题]: Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a move is increment 阅读全文
posted @ 2018-05-03 10:31 苗妙苗 阅读(138) 评论(0) 推荐(0)
摘要: [抄题]: A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 1 == 0 阅读全文
posted @ 2018-05-03 09:17 苗妙苗 阅读(314) 评论(0) 推荐(0)
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 77 下一页