3 ms·
The article specified a list of positive integers, and you can’t go smaller than the smallest initial value.
by TylerE 3y ago
The article specified a list of positive integers, and you can’t go smaller than the smallest initial value.
- nishamarshalll 3y ago[flagged]
- stavros 3y agoWhere does it say that? It only says you can't go larger than the largest value.
- abetusk 3y agoThe constraints stated: * You can never make an integer greater than the largest integer in the original list. * You can never make a move that results in the same integer appearing in the list more than once. You can make a negative number and you can go lower than the smallest but not greater than the largest, so you're wrong on both counts.
- tetris11 3y agoIt does feel implied albeit forgotten given the constrained nature of the task. Opening up the door to negative numbers feels like cheating.
- deleted 3y ago[deleted]
- Sharlin 3y agoHowever, as a result of #1, you in fact cannot make negative integers. It’s not possible to split a nonnegative integer into two lesser-or-equal integers such that either of them is negative.
- DougBTX 3y ago> largest integer in the original list So if the original list was [10, 1] and negative numbers were allowed, then [10, 2, -1] would be allowed.
- adbachman 3y agothe only moves available are: 1. Split an integer into two smaller integers. 2. Combine (add) two integers into a larger one. Both suggest that negative numbers are not possible.
- simiones 3y agoThe article says you start with a list of positive integers. It also clearly shows right in the first example of the first rule that you can go smaller than the smallest initial value: [7, 5, 3] -> [6, 1, 5, 3] is the first legal move it shows, and you'll notice that 1 is smaller than 7, 5, or 3.