
LeetCode Weekly Contest 93
杨领well
君子食无求饱,居无求安,敏于事而慎于言,就有道而正焉。
展开
-
LeetCode: 871. Minimum Number of Refueling Stops
LeetCode: 871. Minimum Number of Refueling Stops 题目描述 A car travels from a starting position to a destination which is target miles east of the starting position. Along the way, there are gas sta...原创 2018-07-17 08:44:51 · 345 阅读 · 0 评论 -
LeetCode: Weekly Contest 93
LeetCode: Weekly Contest 93 题解列表 1. LeetCode: 868. Binary Gap 题解 2. LeetCode: 869. Reordered Power of 2 题解 3. LeetCode: 870. Advantage Shuffle 题解 4. LeetCode: 871. Minimum Number of Refueling S...原创 2018-07-15 11:06:29 · 220 阅读 · 0 评论 -
LeetCode: 868. Binary Gap
LeetCode: 868. Binary Gap 题目描述 Given a positive integer N, find and return the longest distance between two consecutive 1’s in the binary representation of N. If there aren’t two consecutive 1’s,...原创 2018-07-15 11:11:05 · 605 阅读 · 0 评论 -
LeetCode: 869. Reordered Power of 2
LeetCode: 869. Reordered Power of 2 题目描述 Starting with a positive integer N, we reorder the digits in any order (including the original order) such that the leading digit is not zero. Return true...原创 2018-07-15 11:15:52 · 580 阅读 · 0 评论 -
LeetCode: 870. Advantage Shuffle
LeetCode: 870. Advantage Shuffle 题目描述 Given two arrays A and B of equal size, the advantage of A with respect to B is the number of indices i for which A[i] > B[i]. Return any permutation of A t...原创 2018-07-15 15:00:37 · 560 阅读 · 0 评论