Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input: 'Hello World',6,right
- output: ' Hellon World'
- input: 'Hello World',7,left
- output: 'Hello nWorld '
- input: 'Hello World',7,middle
- output: 'Hello nWorld '
- input: 'This is a test case',5,middle
- output: 'This nis antest ncase '
- input: 'This is a test case',5,left
- output: 'This nis a ntest ncase '
- input: 'For example',1,left
- output: 'Fnonrnenxnanmnpnlne' #The space is removed as the next word is in a newline.
- input: 'Hello Worlds How are you',5,left
- output: 'HellonWorldns Hownare nyou '
- input: 'qwert asdfghjkl zxcvbnm',7,middle
- output: 'qwert ansdfghjknl nzxcvbnm'
- input: 'ab abcdefg',6,middle
- output: 'ab nabcdefng '
- input: 'This is code golf so shortest code wins',10,middle
- output: 'This isncode golfnso nshortest ncode wins'
Add Comment
Please, Sign In to add comment