Retired
Split-form Addition (retired)
35 of 154wengzilla
Description:
Let "split-form" represent a positive integer that is split into its respective digits. For instance, the split-form of 123
is: [1, 2, 3]
Write a class Addition
that can be initialized with two split-form operands and has a sum
method that returns the sum of the two operands, also in split-form.
Example
Addition.new([1, 2, 3], [2, 3]).sum --> [1, 4, 6]
The join
function cannot be used; rather, you should aim to make an adder that can perform long streams of addition.
Arrays
Fundamentals
Similar Kata:
Stats:
Created | Oct 20, 2015 |
Warriors Trained | 475 |
Total Skips | 108 |
Total Code Submissions | 392 |
Total Times Completed | 154 |
Ruby Completions | 35 |
Python Completions | 121 |
Total Stars | 9 |
% of votes with a positive feedback rating | 75% of 70 |
Total "Very Satisfied" Votes | 47 |
Total "Somewhat Satisfied" Votes | 11 |
Total "Not Satisfied" Votes | 12 |
Total Rank Assessments | 75 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |