6 kyu
search in multidimensional array
985 of 1,438bakula
Description:
Write a function that gets a sequence and value and returns true/false
depending on whether the variable exists in a multidimentional sequence.
Example:
locate(['a','b',['c','d',['e']]],'e'); // should return true
locate(['a','b',['c','d',['e']]],'a'); // should return true
locate(['a','b',['c','d',['e']]],'f'); // should return false
Arrays
Algorithms
Similar Kata:
Stats:
Created | Nov 13, 2013 |
Published | Nov 13, 2013 |
Warriors Trained | 2807 |
Total Skips | 234 |
Total Code Submissions | 17705 |
Total Times Completed | 1438 |
JavaScript Completions | 985 |
Python Completions | 464 |
Total Stars | 50 |
% of votes with a positive feedback rating | 92% of 293 |
Total "Very Satisfied" Votes | 256 |
Total "Somewhat Satisfied" Votes | 29 |
Total "Not Satisfied" Votes | 8 |