Timeline for In Search of a Soulmate
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 16, 2017 at 12:55 | comment | added | AdmBorkBork | @TessellatingHeckler Ah, good catch. All of the testing I did was with pre-sorted input. Thanks! | |
Oct 16, 2017 at 12:54 | history | edited | AdmBorkBork | CC BY-SA 3.0 |
Fixed bug thanks to TessellatingHeckler.
|
Oct 15, 2017 at 23:48 | comment | added | TessellatingHeckler |
This doesn't work on the second test case 1,2,1 - get-unique only works on pre-sorted input. How about ($args|sort -u).count-eq$args.count-1 which is also 37 but does work for all the test cases, if you call it like f 1 2 1 instead of f 1,2,1 ?
|
|
Oct 13, 2017 at 12:19 | comment | added | AdmBorkBork | @Sinusoid Yes, we can. Thanks! | |
Oct 13, 2017 at 12:19 | history | edited | AdmBorkBork | CC BY-SA 3.0 |
Saved 3 bytes thanks to Sinusoid
|
Oct 12, 2017 at 20:54 | comment | added | Sinusoid | Can you use the get-unique alias 'gu' instead of group to reach the same result? | |
Oct 11, 2017 at 20:27 | history | answered | AdmBorkBork | CC BY-SA 3.0 |