摘要: https://leetcode.com/problems/di-string-match/ Given a string S that only contains "I" (increase) or "D" (decrease), let N = S.length. Return any perm 阅读全文
posted @ 2019-04-12 22:56 丧心病狂工科女 阅读(192) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/self-dividing-numbers/ A self-dividing number is a number that is divisible by every digit it contains. For example, 128 阅读全文
posted @ 2019-04-12 19:19 丧心病狂工科女 阅读(191) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/ugly-number/ Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose 阅读全文
posted @ 2019-04-12 19:03 丧心病狂工科女 阅读(145) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/integer-break/ Given a positive integer n, break it into the sum of at least two positive integers and maximize the prod 阅读全文
posted @ 2019-04-12 17:51 丧心病狂工科女 阅读(84) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/rectangle-overlap/ A rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) are the coordinates of its bott 阅读全文
posted @ 2019-04-12 17:05 丧心病狂工科女 阅读(123) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/rectangle-area/ Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by it 阅读全文
posted @ 2019-04-12 16:39 丧心病狂工科女 阅读(119) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/1144 A. Diverse Strings A string is called diverse if it contains consecutive (adjacent) letters of the Latin alphabet a 阅读全文
posted @ 2019-04-12 11:46 丧心病狂工科女 阅读(183) 评论(0) 推荐(0) 编辑