Oh, now I totaly misunderstood the task! Thanks!
Where are you getting array length from? It's 2, because 2 is the 3rd index of input array (2nd argument).
But how do we actually get 2 in this situation? The array length is counting as 4, not 3.
actual and expected aren't reversed, your code filters strings with numbers in it, and the control function isn't doing that.
actual
expected
It's correct. 2 ^ 3 = 8.
Worked fine on my end. Are you filtering by len()?
Loading collection data...
Oh, now I totaly misunderstood the task! Thanks!
Where are you getting array length from? It's 2, because 2 is the 3rd index of input array (2nd argument).
But how do we actually get 2 in this situation? The array length is counting as 4, not 3.
actual
andexpected
aren't reversed, your code filters strings with numbers in it, and the control function isn't doing that.It's correct. 2 ^ 3 = 8.
Worked fine on my end. Are you filtering by len()?