Timeline for Can I Settle Down?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 9, 2017 at 3:08 | history | edited | Jakob | CC BY-SA 3.0 |
added 2 characters in body
|
Sep 4, 2017 at 21:28 | history | edited | Jakob | CC BY-SA 3.0 |
added 6 characters in body
|
Sep 4, 2017 at 21:24 | comment | added | Jakob | Now that's some juicy bit hacking! | |
Sep 4, 2017 at 21:19 | history | edited | Jakob | CC BY-SA 3.0 |
correct byte count
|
Sep 4, 2017 at 20:34 | comment | added | Nevay |
101 bytes: a->{int h,f[]=new int[5],i=0;for(int x:a)f[x]++;for(h=f[4]/4;i<4;)h+=--f[i]>>-1|f[i++]/4;return~h<0;}
|
|
Sep 4, 2017 at 20:27 | comment | added | Nevay |
103 bytes: a->{int h,f[]=new int[5],i=0;for(int x:a)f[x]++;for(h=f[4]/4;i<4;h+=f[i++]/4)h+=--f[i]>>-1;return~h<0;}
|
|
Sep 4, 2017 at 20:16 | comment | added | Nevay |
-3 bytes: ...for(h=f[4]/4;i<4;h+=f[i++]/4)n+=--f[i]>>-1;return~h<n; .
|
|
Sep 4, 2017 at 18:48 | history | edited | Jakob | CC BY-SA 3.0 |
-2 bytes
|
Sep 4, 2017 at 18:42 | history | edited | Jakob | CC BY-SA 3.0 |
added 177 characters in body
|
Sep 4, 2017 at 18:32 | history | answered | Jakob | CC BY-SA 3.0 |