Solve this Programming Task in language of preference
TASK 1: Programming Task in language of preference
Imagine a customized computer keyboard with following layout :
ERTYU1
DFGHJ2
CVBNM4
The keyboard only has above set of keys in the panel , For a given set on input word you need to output the path taken to press them , for example :
Consider the input word is : RFGM
the output will be :
PRESS R
GO DOWN
PRESS F
GO RIGHT
PRESS G
GO DOWN
GO RIGHT
GO RIGHT
PRESS M
-
Interview Candidate
- Mar 17th, 2015
- 9
- 4894
Showing Answers 1 - 9 of 9 Answers
Solve this Programming Task in language of preference
Imagine a customized computer keyboard with following layout :
ERTYU1
DFGHJ2
CVBNM4
The keyboard only has above set of keys in the panel , For a given set on input word you need to output the path taken to press them , for example :
Consider the input word is : RFGM
the output will be :
PRESS R
GO DOWN
PRESS F
GO RIGHT
PRESS G
GO DOWN
GO RIGHT
GO RIGHT
PRESS M