Skip to main content
17 events
when toggle format what by license comment
Aug 15 at 9:56 comment added TorbenPutkonen Just for curiosity, regarding the industry standard practices: Arrays.stream(source).parallel().sum(); does everything you need. Maybe add asLongStream() to reduce the amount of integer over/underflows.
Aug 15 at 8:18 comment added greybeard ("modified" - ? I see no modification. My priorities: 0) Who created the text in the image/block quote? (omitting this is not an option) 1) What does "There is no concurrency?" mean? 2) What does "(Maximum) modulo value of each array element" mean?)
Aug 14 at 16:47 vote accept bonnyped
Aug 14 at 16:37 comment added bonnyped @greybeard modified
Aug 12 at 21:32 comment added Peter Cordes @greybeard: I solved the first mystery: searching on "modulus" found the comment on the definition of MAX_VALUE_FOR_RANDOM. So apparently they're assuming that random.nextInt(MAX_VALUE_FOR_RANDOM) is implemented internally as random % maxval, instead of a method which avoids introducing bias for ranges which aren't powers of 2. (And this assumption is present even in the assignment. Yikes.)
Aug 12 at 9:59 history became hot network question
Aug 12 at 9:20 answer added Jannik S. timeline score: 7
Aug 12 at 8:55 answer added greybeard timeline score: 3
Aug 12 at 8:50 history edited greybeard CC BY-SA 4.0
edited body
Aug 12 at 8:25 comment added greybeard I don't understand "modulo value of each array element". I don't understand the title's "There is no concurrency?"
Aug 12 at 8:23 history edited greybeard CC BY-SA 4.0
task statement as block quoted text
Aug 12 at 7:55 answer added Yuliia Baranetska timeline score: 5
Aug 11 at 20:37 comment added greybeard Please don't use images of rendered text: Paste the text into a block quote - proper attribution required.
Aug 11 at 12:48 history edited toolic CC BY-SA 4.0
added 1 character in body
Aug 11 at 12:44 history edited bonnyped CC BY-SA 4.0
added 7 characters in body
S Aug 11 at 12:42 review First questions
Aug 11 at 12:48
S Aug 11 at 12:42 history asked bonnyped CC BY-SA 4.0