7 kyu

Sum of a nested list

1,560 of 3,172kingcobra

Description:

Implement a function to calculate the sum of the numerical values in a nested list. For example :

sum_nested([1, [2, [3, [4]]]]) -> 10
sumNested([1, [2, [3, [4]]]]) => 10
Recursion
Lists
Algorithms
Fundamentals

Stats:

CreatedNov 22, 2017
PublishedNov 22, 2017
Warriors Trained4943
Total Skips56
Total Code Submissions9684
Total Times Completed3172
Python Completions1497
JavaScript Completions1560
Ruby Completions184
Crystal Completions16
Total Stars66
% of votes with a positive feedback rating92% of 505
Total "Very Satisfied" Votes437
Total "Somewhat Satisfied" Votes58
Total "Not Satisfied" Votes10
Total Rank Assessments3
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • kingcobra Avatar
  • GiacomoSorbi Avatar
  • kazk Avatar
  • Blind4Basics Avatar
  • Souzooka Avatar
  • Just4FunCoder Avatar
  • saudiGuy Avatar
Ad