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

 

jebbert@volusia.k12.fl.us > test2024_04_16_APP1SLHL_twoDigits
prev  |  next  |  chance

Write a method that accepts an array of positive integers, then returns an array of the same length. Each element in the new array will match the value of the two least significant digits of the corresponding element in the original array. Look at the test data for examples. Note: You are NOT allowed to use strings or string methods to help solve this problem!


test2024_04_16_APP1SLHL_twoDigits([]) → []
test2024_04_16_APP1SLHL_twoDigits([2715125]) → [25]
test2024_04_16_APP1SLHL_twoDigits([347, 235, 78976, 12, 463, 457]) → [47, 35, 76, 12, 63, 57]

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

public int[] test2024_04_16_APP1SLHL_twoDigits(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: 210

Copyright Nick Parlante 2017 - privacy