You need to sign in or sign up before continuing.×
Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Having an issue with PHP test case #3 which fails whether the algorithm returns true or false.
Or can someone please let me know if i am missing something?
array(8) {
[0]=>
int(121)
[1]=>
int(144)
[2]=>
int(19)
[3]=>
int(161)
[4]=>
int(19)
[5]=>
int(144)
[6]=>
int(19)
[7]=>
int(11)
}
array(8) {
[0]=>
int(121)
[1]=>
int(14641)
[2]=>
int(20736)
[3]=>
int(36100)
[4]=>
int(25921)
[5]=>
int(361)
[6]=>
int(20736)
[7]=>
int(361)
}
✘ Failed asserting that true matches expected false.
array(8) {
[0]=>
int(121)
[1]=>
int(144)
[2]=>
int(19)
[3]=>
int(161)
[4]=>
int(19)
[5]=>
int(144)
[6]=>
int(19)
[7]=>
int(11)
}
array(8) {
[0]=>
int(121)
[1]=>
int(14641)
[2]=>
int(20736)
[3]=>
int(36100)
[4]=>
int(25921)
[5]=>
int(361)
[6]=>
int(20736)
[7]=>
int(361)
}
✘ Failed asserting that false matches expected true.