The Keyboard Shift Cipher - Code Golf Stack Exchange Given the following input: An integer n where n > 0 A string s where s is not empty and s~=[0-9A-Z]+ (alpha-numeric capitals only) Using a standard, simplified QWERTY keyboard (as shown below): 1234567890 QWERTYUIOP ASDFGHJKL ZXCVBNM Perform the following operation: Find the original row that each character is in on the keyboard Replace the letter with the correct shifted equivalent for n
Longest word using a single row of the qwerty keyboard The three rows of the qwerty keyboard are qwertyuiop, asdfghjkl and zxcvbnm Your task is to find the longest word that can be typed using only one row of the keyboard, from a given list of words
code challenge - Print the QWERTY keyboard using keys that are as close . . . Nice again! You could do "QWERTYUIOP<br>ASDFGHJKL<br>ZXCVBNM"¬¸r'Z" Z (<br> represents a line break), but that requires two non-keyboard chars, so I guess it isn't legal But at least you can remove the comma, as it is automatically inserted
Given an input, move it along the keyboard by N characters The Challenge: Given any input that can be typed on a keyboard, move the text along by N chars Here is the QWERTY keyboard to be used You can ignore the modifier keys (Shift, Caps, Enter, Delet
code golf - One line Keyboard - Code Golf Stack Exchange Keyboard layout To clarify any ambiguity over what the standard keyboard layout is below is a list of keys available on each line, including alternate upper keys (accessed using shift) Line 1 Standard: `1234567890-= Line 2 Standard: qwertyuiop[] Line 3 Standard: asdfghjkl;'# Uppercase: ASDFGHJKL Special: Caps Lock Line 4 Standard: \zxcvbnm, Alternate: |<>? Uppercase: ZXCVBNM Special: Shift
Fix my Fat Fingers - Code Golf Stack Exchange 00000010: 6f70 5b5d 5c61 7364 6667 686a 6b6c 3b27 op[]\asdfghjkl;' 00000020: 7a78 6376 626e 6d2c 2e2f 1b2f 1261 0a68 zxcvbnm, a h 00000030: 7856 70 xVp Explanation Most of the program generates the keyboard i enters insert mode and every character following it is printed to the buffer
Which Row is the Key On? - Code Golf Stack Exchange n=>[`qwertyuiop{}[]|\\`,`asdfghjkl;: '`,`zxcvbnm, <>? "`,` `] map(x=>+(x indexOf(n toLowerCase())<0)) indexOf(0)+2 Another JavaScript solution The principle is to return the index of the input char in the array of rows plus 2 (so as the 0-9 row returns -1, i e not exists, -1+2=1 q is in the first string of the array, so it returns
Help Alice fix her text! - Code Golf Stack Exchange Try it online! 'qwertyuiop[asdfghjkl;zxcvbnm, ' The full keyboard, including the shifted away left-most chars and the extra chars [;,, as well as two extra spaces at the end <:@i: Find the index of the input within that, searching from the right, and substract one {[ Pull those shifted indexes from the string in step 1