about | help | code help+videos | done | prefs |
Given 2 positive ints n1 and n2, swap the last digit of the value inside the n1 with the last digit of n2, and return the new value of the parameter n1. swapLastDigits(12, 3) → 13 swapLastDigits(1, 2) → 2 swapLastDigits(111, 22) → 112 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 120
Copyright Nick Parlante 2017 - privacy