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

Stats:

CreatedDec 5, 2016
PublishedDec 5, 2016
Warriors Trained1684
Total Skips93
Total Code Submissions3738
Total Times Completed700
JavaScript Completions352
PHP Completions76
Python Completions268
Crystal Completions6
Ruby Completions50
Total Stars56
% of votes with a positive feedback rating92% of 214
Total "Very Satisfied" Votes187
Total "Somewhat Satisfied" Votes20
Total "Not Satisfied" Votes7
Total Rank Assessments10
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • buttonupbub Avatar
  • GiacomoSorbi Avatar
  • donaldsebleung Avatar
  • JohanWiltink Avatar
  • trashy_incel Avatar
  • Just4FunCoder Avatar
Ad