/opsuccess_test

Test for opsuccess.com

Primary LanguageRuby

Introduction

Implement a ruby method to find the next largest number with the same digits of the input number. Ex: 38276 would return 38627.

Setup

Run bundle install from home directory

Run Tests

Find spec file at spec/number_game_spec.rb

To run all the spec, run rspec from home directory

Source File

The method is implemented as class method. Check number_game.rb