7 kyu

Sum of a nested list

1,514 of 3,202kingcobra

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 Trained4988
Total Skips56
Total Code Submissions9750
Total Times Completed3202
Python Completions1514
JavaScript Completions1573
Ruby Completions185
Crystal Completions16
Total Stars67
% of votes with a positive feedback rating92% of 508
Total "Very Satisfied" Votes440
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