Skip to main content
added 16 characters in body
Source Link

Given a character, output (to the screen) the entire qwerty keyboard layout (with spaces and newlines) that follows the character. The examples make it clear.

Input 1

f 

Output 1

g h j k l z x c v b n m 

Input 2

q 

Output 2

w e r t y u i o p a s d f g h j k l z x c v b n m 

Input 3

m 

Output 3

(Program terminates without output)

Input 4

l 

Output 4

z x c v b n m 

Shortest code wins. (in bytes)

P.S.

Extra newlines, or extra spaces at the end of a line are accepted.

Given a character, output the entire qwerty keyboard layout (with spaces and newlines) that follows the character. The examples make it clear.

Input 1

f 

Output 1

g h j k l z x c v b n m 

Input 2

q 

Output 2

w e r t y u i o p a s d f g h j k l z x c v b n m 

Input 3

m 

Output 3

(Program terminates without output)

Input 4

l 

Output 4

z x c v b n m 

Shortest code wins. (in bytes)

P.S.

Extra newlines, or extra spaces at the end of a line are accepted.

Given a character, output (to the screen) the entire qwerty keyboard layout (with spaces and newlines) that follows the character. The examples make it clear.

Input 1

f 

Output 1

g h j k l z x c v b n m 

Input 2

q 

Output 2

w e r t y u i o p a s d f g h j k l z x c v b n m 

Input 3

m 

Output 3

(Program terminates without output)

Input 4

l 

Output 4

z x c v b n m 

Shortest code wins. (in bytes)

P.S.

Extra newlines, or extra spaces at the end of a line are accepted.

added 131 characters in body
Source Link

Given a character, output the entire qwerty keyboard layout (with spaces and newlines) that follows the character. The examples make it clear.

Input 1

f 

Output 1

g h j k l z x c v b n m 

Input 2

q 

Output 2

w e r t y u i o p a s d f g h j k l z x c v b n m 

Input 3

m 

Output 3

(Program terminates without output)

Input 4

l 

Output 4

z x c v b n m 

Shortest code wins. (in bytes)

P.S.

Extra newlines, or extra spaces at the end of a line are accepted.

Given a character, output the entire qwerty keyboard layout (with spaces and newlines) that follows the character. The examples make it clear.

Input 1

f 

Output 1

g h j k l z x c v b n m 

Input 2

q 

Output 2

w e r t y u i o p a s d f g h j k l z x c v b n m 

Input 3

m 

Output 3

(Program terminates without output)

Shortest code wins. (in bytes)

Given a character, output the entire qwerty keyboard layout (with spaces and newlines) that follows the character. The examples make it clear.

Input 1

f 

Output 1

g h j k l z x c v b n m 

Input 2

q 

Output 2

w e r t y u i o p a s d f g h j k l z x c v b n m 

Input 3

m 

Output 3

(Program terminates without output)

Input 4

l 

Output 4

z x c v b n m 

Shortest code wins. (in bytes)

P.S.

Extra newlines, or extra spaces at the end of a line are accepted.

Tweeted twitter.com/StackCodeGolf/status/669104134751129600
edited tags
Link
Martin Ender
  • 198.3k
  • 67
  • 455
  • 999
Source Link
Loading