Skip to main content
12 events
when toggle format what by license comment
Sep 25, 2019 at 7:33 vote accept Frankfurter
Sep 24, 2019 at 20:37 answer added Reinderien timeline score: 1
Sep 24, 2019 at 19:15 answer added Martin R timeline score: 1
Sep 24, 2019 at 18:00 history tweeted twitter.com/StackCodeReview/status/1176557051394347009
Sep 24, 2019 at 17:04 comment added Reinderien My guess is that, rather than Generate the shortest list possible with prefixes that include the whole range, based on the example, the problem should state Generate the shortest list possible with prefixes that include ONLY the whole range and nothing outside of it.
Sep 24, 2019 at 16:39 comment added Reinderien I don't understand the problem statement. For the first example, wouldn't a single prefix of 1 cover all of the numbers in the range?
Sep 24, 2019 at 16:37 history edited Frankfurter CC BY-SA 4.0
deleted 8 characters in body
Sep 24, 2019 at 16:36 comment added Frankfurter @Reinderien Sorry. Integer.parseInt was a typo. Should be Long.parseLong. I'll edit my post. I need the result as List<String> but it is absolutly fine to use other types somewhere in between for the values.
Sep 24, 2019 at 16:23 comment added Reinderien Seems that your code assumes that they'll fit into an integer, which is even smaller than a long.
Sep 24, 2019 at 16:22 comment added Reinderien Do they need to be strings? Can they be converted to long? What's the maximum value?
Sep 24, 2019 at 14:05 review First posts
Sep 24, 2019 at 15:20
Sep 24, 2019 at 14:04 history asked Frankfurter CC BY-SA 4.0