Timeline for Shrinking numbers
Current License: CC BY-SA 3.0
40 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 28, 2022 at 13:50 | comment | added | random person |
I dont really understand what I need to do, i, by iterating over every element, do this toreturn[i] = (arg[i]*1f/arg.maxOf{it}).coerceIn(0f,1f) but somehow it is wrong? what exactly do i need to do?
|
|
Jan 28, 2022 at 4:38 | answer | added | cnamejj | timeline score: 1 | |
Jan 28, 2022 at 3:28 | answer | added | emanresu A | timeline score: 1 | |
Nov 10, 2016 at 23:04 | comment | added | ATaco |
The atleast one digit after the decimal point rule needlessly complicates things, as well as the forced string output. In RProgN, the solution could just be ] max / , however, these formatting demands make it ] max / ';' . '1$' '1.0' R '^0' '0.0;' R
|
|
Nov 10, 2016 at 18:05 | answer | added | Magic Octopus Urn | timeline score: 2 | |
Nov 10, 2016 at 13:08 | answer | added | Billywob | timeline score: 3 | |
Nov 10, 2016 at 10:52 | answer | added | Kevin Cruijssen | timeline score: 1 | |
Dec 30, 2014 at 16:09 | answer | added | KSFT | timeline score: 1 | |
Oct 3, 2014 at 6:46 | answer | added | protist | timeline score: 1 | |
Oct 2, 2014 at 14:08 | comment | added | stackErr | @Manu I misunderstood your challenge. Ignore my comment :P | |
Oct 2, 2014 at 13:30 | comment | added | Manuel Allenspach | @Dennis The format has to match the one shown in the question. This means the numbers are seperated by semicolons. | |
Oct 2, 2014 at 13:28 | vote | accept | Manuel Allenspach | ||
Oct 2, 2014 at 8:29 | vote | accept | Manuel Allenspach | ||
Oct 2, 2014 at 13:28 | |||||
Oct 1, 2014 at 21:29 | answer | added | silverpie | timeline score: 3 | |
Oct 1, 2014 at 17:15 | answer | added | histocrat | timeline score: 2 | |
Oct 1, 2014 at 15:51 | answer | added | resueman | timeline score: 2 | |
Oct 1, 2014 at 15:40 | history | tweeted | twitter.com/#!/StackCodeGolf/status/517338208963932161 | ||
Oct 1, 2014 at 14:53 | answer | added | Dennis | timeline score: 6 | |
Oct 1, 2014 at 14:29 | comment | added | Dennis | Some answers format the output in a different manner (e.g., separating by spaces or as an array). Is that allowed? | |
Oct 1, 2014 at 13:59 | answer | added | isaacg | timeline score: 4 | |
Oct 1, 2014 at 13:57 | answer | added | marinus | timeline score: 4 | |
Oct 1, 2014 at 13:55 | answer | added | edc65 | timeline score: 4 | |
Oct 1, 2014 at 13:37 | comment | added | Optimizer | @Manu - Then all existing answers are incorrect ;) . Trying to fix mines. | |
Oct 1, 2014 at 13:33 | comment | added | Manuel Allenspach | @Optimizer Yes. There must be atleast 1 digit after the decimal point. | |
Oct 1, 2014 at 13:32 | comment | added | Optimizer |
@Manu What if the resultant number is not a fraction, do we still need a .0 after that ?
|
|
Oct 1, 2014 at 13:21 | answer | added | laurencevs | timeline score: 5 | |
Oct 1, 2014 at 13:16 | answer | added | Optimizer | timeline score: 5 | |
Oct 1, 2014 at 13:11 | history | edited | Manuel Allenspach | CC BY-SA 3.0 |
clarified rules
|
Oct 1, 2014 at 13:07 | comment | added | John Dvorak | It's still unclear what counts as built-in functions that are disallowed | |
Oct 1, 2014 at 13:05 | comment | added | Manuel Allenspach | @JanDvorak Yes. | |
Oct 1, 2014 at 12:58 | comment | added | John Dvorak | Wait, so, the input may be a function argument, but the output must be to the screen??? | |
Oct 1, 2014 at 12:58 | answer | added | Griffin | timeline score: 3 | |
Oct 1, 2014 at 12:53 | comment | added | John Dvorak | " usage of built-in functions (such as mathematicas Rescale) is disallowed." - that's too vague. What functions are disallowed? Only those that solve the full problem (which would be a standard loophole) are? | |
Oct 1, 2014 at 12:47 | answer | added | Shujal | timeline score: 3 | |
Oct 1, 2014 at 12:42 | answer | added | Optimizer | timeline score: 5 | |
Oct 1, 2014 at 12:35 | answer | added | Martin Ender | timeline score: 3 | |
Oct 1, 2014 at 12:31 | history | edited | Manuel Allenspach | CC BY-SA 3.0 |
changed rules
|
Oct 1, 2014 at 12:27 | comment | added | Manuel Allenspach | @MartinBüttner Yes, they have to be printed. Built-in functions are disallowed. | |
Oct 1, 2014 at 12:24 | comment | added | Martin Ender | So even we write a function the result has to be printed? (As opposed to returning a corresponding array of doubles.) | |
Oct 1, 2014 at 12:23 | history | asked | Manuel Allenspach | CC BY-SA 3.0 |