Given a lowercase letter or a digit as input, return the row where that letter appears on a standard U.S. QWERTY keyboard and its position starting from the leftmost digit or letter on that row.
Examples:
Input key = 'a' Output r = 3 c = 1
Input key = '0' Output r = 1 c = 10
Input key = 'y' Output r = 2 c = 6
I'm curious: why did you include the [1 1]'s in your value set?
Hi, Heather. To be honest, this was an older version that I was using to test containers.Map, and ended up submitting by mistake.
You got the smallest answer by mistake? Cool!
That would be something, wouldn't it? The mistake was copy-pasting this version, with the [1 1]s, instead of a version without them. They are not needed, as you noticed.
10755 Solvers
Project Euler: Problem 5, Smallest multiple
241 Solvers
Find perfect placement of non-rotating dominoes (easier)
228 Solvers
322 Solvers
Sum of odd numbers in a matrix
232 Solvers