6 kyu

Even Odd Pattern #1

318 of 735debri

Description:

Write a function that takes an array / list of numbers and returns a number.

See the examples and try to guess the pattern:

(1, 2, 6, 1, 6, 3, 1, 9, 6) => 393
(1, 2, 3)                   =>   5
(0, 2, 3)                   =>   3
(1, 0, 3)                   =>   3
(3, 2)                      =>   6
Logic
Arrays
Mathematics
Puzzles

More By Author:

Check out these other kata created by debri

Stats:

CreatedJul 9, 2015
PublishedJul 9, 2015
Warriors Trained1948
Total Skips74
Total Code Submissions2965
Total Times Completed735
JavaScript Completions318
Ruby Completions68
Python Completions332
C Completions66
Total Stars40
% of votes with a positive feedback rating88% of 205
Total "Very Satisfied" Votes168
Total "Somewhat Satisfied" Votes26
Total "Not Satisfied" Votes11
Total Rank Assessments27
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • debri Avatar
  • Unnamed Avatar
  • GiacomoSorbi Avatar
  • Chrono79 Avatar
  • user5036852 Avatar
  • rowcased Avatar
  • Just4FunCoder Avatar
  • saudiGuy Avatar
Ad