Largest Number Combination in Ruby
In this guide you will learn how to combine numbers to the largest possible number.
Guide Tasks
  • Read Tutorial
  • Complete the Exercise

Summary

Build a method that will output the largest combination of numbers.

Exercise Description

"Define a method using the largest_number_combination that will combine to be the largest number possible."

Example Data

'arr = [50, 2, 1, 9]'
-> expect(largest_number_combination(arr)).to eq(95021)

Real World Usage

This exercise will help you learn how to combine a bunch of single numbers in to a large single number.

Test Cases

Code File