#数学逻辑
该标签下的全部文章。
Fraction to Recurring Decimal
Given two integers representing the numerator and denominator of a fraction, return the fraction in string for
The Heavy Pill
You have 20 bottles of pills. 19 bottles have 1.0 gram pills, but one has pills of weight 1.1 grams.
Jugs of Water
You have a five-quart jug, a three-quart jug, andn an unlimited supply of water (but no measuring cups).
Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
Next Permutation
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of nu