6 kyu
Sum of nested numbers
352 of 700buttonupbub
Description:
Build a function that finds the sum of all numbers in a series of nested arrays raised to the power of their respective nesting levels. Numbers in the outer most array should be raised to the power of 1.
For example,
[1, [2], 3, [4, [5]]]
should return 1 + 2*2 + 3 + 4*4 + 5*5*5 == 149
Fundamentals
Similar Kata:
Stats:
Created | Dec 5, 2016 |
Published | Dec 5, 2016 |
Warriors Trained | 1684 |
Total Skips | 93 |
Total Code Submissions | 3738 |
Total Times Completed | 700 |
JavaScript Completions | 352 |
PHP Completions | 76 |
Python Completions | 268 |
Crystal Completions | 6 |
Ruby Completions | 50 |
Total Stars | 56 |
% of votes with a positive feedback rating | 92% of 214 |
Total "Very Satisfied" Votes | 187 |
Total "Somewhat Satisfied" Votes | 20 |
Total "Not Satisfied" Votes | 7 |
Total Rank Assessments | 10 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |