this is wild. i demand an explanation lol
🥷🏿's js trying his best to make the shortest line of code possible atp 😭🙏
In the random test it expected "Expected: equal to [ [ 0, 91, 15, 13 ], [ 4, 159, 108, 13 ], [ 4, 159, 108, 13 ], [ 4, 159, 108, 13 ], [ 4, 159, 108, 13 ], [ 4, 159, 108, 13 ], [ 4, 159, 108, 13 ], [ 4, 159, 108, 13 ], [ 4, 68, 93, 0 ] ]" but first vector must contain equal numbers please fix it
If this isn't best practice, I don't know what is.
How did you come up with the hardcoded strings?
If you didn't know them ahead of time, how would you approach this coding challenge?
All in all... It's just a matter of reading through the lines for the ordering of the entry vectors... And IMHO, the 'idea' of a 3D to 2D projection is... weird => should be more specific in the description.
how is it supposed to work?
what is this AHAHAHHAHA
Most readable code of year award goes to..
Is this a joke? 🤐
when i looking it i'm smile) Thank you)
that was crazy dude ;)
I mean if it works it works.
Input: 1638 | Harmonic mean: 9 | Expected: true | Output: false
Input: 18600 | Harmonic mean: 15 | Expected: true | Output: false
Input: 105664 | Harmonic mean: 13 | Expected: true | Output: false
Input: 950976 | Harmonic mean: 27 | Expected: true | Output: false
Input: 4713984 | Harmonic mean: 48 | Expected: true | Output: false
It takes less than 8ms to generate all permutations. why would you
Loading collection data...
this is wild. i demand an explanation lol
🥷🏿's js trying his best to make the shortest line of code possible atp 😭🙏
In the random test it expected "Expected: equal to [ [ 0, 91, 15, 13 ], [ 4, 159, 108, 13 ], [ 4, 159, 108, 13 ], [ 4, 159, 108, 13 ], [ 4, 159, 108, 13 ], [ 4, 159, 108, 13 ], [ 4, 159, 108, 13 ], [ 4, 159, 108, 13 ], [ 4, 68, 93, 0 ] ]" but first vector must contain equal numbers please fix it
If this isn't best practice, I don't know what is.
How did you come up with the hardcoded strings?
If you didn't know them ahead of time, how would you approach this coding challenge?
All in all... It's just a matter of reading through the lines for the ordering of the entry vectors...
And IMHO, the 'idea' of a 3D to 2D projection is... weird => should be more specific in the description.
how is it supposed to work?
what is this AHAHAHHAHA
Most readable code of year award goes to..
Is this a joke? 🤐
when i looking it i'm smile) Thank you)
that was crazy dude ;)
I mean if it works it works.
Input: 1638 | Harmonic mean: 9 | Expected: true | Output: false
Input: 18600 | Harmonic mean: 15 | Expected: true | Output: false
Input: 105664 | Harmonic mean: 13 | Expected: true | Output: false
Input: 950976 | Harmonic mean: 27 | Expected: true | Output: false
Input: 4713984 | Harmonic mean: 48 | Expected: true | Output: false
It takes less than 8ms to generate all permutations. why would you
Loading more items...