Testing for [[59, 26], [68, 4], [72, 1], [44, 21], [66, 14], [31, 5], [28, 0], [59, 21]]
['Senior', 'Open', 'Open', 'Open', 'Senior', 'Open', 'Open', 'Senior'] should equal ['Senior', 'Senior', 'Senior', 'Senior', 'Senior', 'Senior', 'Senior', 'Senior'] the random test is wrong it only returns senior in all list?????
oh i solved it, just create a new list and append the outputs there
capitalization of senior and open
you need to learn about loops and data structures first then hopefully you can solve this kata......
loop throught the list given, apply the conditions if conditions were met create a new list and add the output there. hope this helped you
Testing for [[59, 26], [68, 4], [72, 1], [44, 21], [66, 14], [31, 5], [28, 0], [59, 21]]
['Senior', 'Open', 'Open', 'Open', 'Senior', 'Open', 'Open', 'Senior'] should equal ['Senior', 'Senior', 'Senior', 'Senior', 'Senior', 'Senior', 'Senior', 'Senior'] the random test is wrong it only returns senior in all list?????
i totally ignored the hint "Do not modify the original array." my fault
What's misleading and what's the issue?
i thought it was my code but this kata is misleading and has an issue. this should be fixed asap