id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

norm.krumpe@muohio.edu arrays > bumpTheNines
prev  |  next  |  chance

Given an array of non-negative integers, return that array after changing all numbers ending in 9 to the next integer. For example, 59 would become 60.


bumpTheNines([49, 33, 29]) → [50, 33, 30]
bumpTheNines([90, 99]) → [90, 100]
bumpTheNines([68]) → [68]

...Save, Compile, Run (ctrl-enter)

int[] bumpTheNines(int[] nums) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 200

Copyright Nick Parlante 2017 - privacy