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
'alr approved by some1'
Sorry, misunderstood. thanks for the explanation
It's correct. 2 ^ 3 = 8.
Java's basic test is incorrect
assertEquals(8, Kata.nthPower(new int[] {3,1,2,2}, 3));
Not well explained Kata, as a programmer I was expecting to solve a logic, not a mathematical problem
yes, i did use len()
Worked fine on my end. Are you filtering by len()?
In python, plenty of tests are failing because the expected and actual are reversed. Hence I couldn't submit my solution
Sample: ['RQWk', 'htGD', 'epmV', 'lIzS', 'cDYv', 'zWVg'] should equal ['0BLO', 'RQWk', 'Ee3S', 'htGD', 'epmV', 'lIzS', 'p9kz', 'cDYv', 'zWVg'] ['DBAa', 'NVoa', 'nXfZ'] should equal ['O9wR', 'DBAa', 'NVoa', 'Wh6n', 'Ju8G', 'nXfZ', '1PXt']
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.'alr approved by some1'
Sorry, misunderstood. thanks for the explanation
It's correct. 2 ^ 3 = 8.
Java's basic test is incorrect
Not well explained Kata, as a programmer I was expecting to solve a logic, not a mathematical problem
yes, i did use len()
Worked fine on my end. Are you filtering by len()?
In python, plenty of tests are failing because the expected and actual are reversed. Hence I couldn't submit my solution
Sample:
['RQWk', 'htGD', 'epmV', 'lIzS', 'cDYv', 'zWVg'] should equal ['0BLO', 'RQWk', 'Ee3S', 'htGD', 'epmV', 'lIzS', 'p9kz', 'cDYv', 'zWVg']
['DBAa', 'NVoa', 'nXfZ'] should equal ['O9wR', 'DBAa', 'NVoa', 'Wh6n', 'Ju8G', 'nXfZ', '1PXt']