Rotating Philosophers Problem
Can you help the philosophers find a good place to sit before they get five forks and spaghetti?
Start file
Socrates Voltaire Descartes Plato
End file
Socrates Voltaire Descartes Plato Konfuzius Konfuzius Socrates Voltaire Descartes Plato Plato Konfuzius Socrates Voltaire Descartes Descartes Plato Konfuzius Socrates Voltaire Voltaire Descartes Plato Konfuzius Socrates
View Diff
1c1,5 < Socrates Voltaire Descartes Plato --- > Socrates Voltaire Descartes Plato Konfuzius > Konfuzius Socrates Voltaire Descartes Plato > Plato Konfuzius Socrates Voltaire Descartes > Descartes Plato Konfuzius Socrates Voltaire > Voltaire Descartes Plato Konfuzius Socrates
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
#98 Matt Donahoe / @mdonahoe - Score: 33 - 10/24/11 @ 23:22
A Konfuzius<Esc>qqYp$diw0Pa <Esc>$xq3@qZZ
0 comments
#99 Thomas Wickham / @mackwic - Score: 33 - 11/03/11 @ 13:11
A Konfuzius<Esc>qqYPj4wD0Pa <Esc>$xq3@qZZ
0 comments
#100 Kevin / @exclipy - Score: 33 - 12/01/11 @ 03:16
A Konfuzius <Esc>qqYp4wD^Pq3@q$<C-V>4kxZZ
0 comments
#101 Arto Vuori / @dhpe - Score: 33 - 09/01/12 @ 10:23
A Konfuzius<Esc>qqYp$diw0Pa <Esc>$xq3@qZZ
0 comments
#102 Manuel Korfmann / @mkorfmann - Score: 34 - 01/18/11 @ 02:53
A Konfuzius<Esc>qqYp4f xD0Pa <Esc>q3@q:wq<CR>
0 comments
#103 Misha (Mike) Granin / @Granin - Score: 34 - 01/18/11 @ 20:26
A Konfuzius<Esc>qqYp4f xD0Pa <Esc>q3@q:wq<CR>
0 comments
#104 Solomon White / @rubysolo - Score: 34 - 02/09/11 @ 09:01
A Konfuzius<Esc>qaYp4whD^Pa <Esc>^hxq3@aZZ
0 comments
#105 Dan Masquelier / @danmasq - Score: 34 - 07/01/11 @ 14:03
A Konfuzius<Esc>qvYPdwA <Esc>pxq3@vLddHPZZ
0 comments
#106 p0ckets / @p0ckets - Score: 34 - 10/10/11 @ 15:23
A Konfuzius<Esc>qqYpd4e$p`[i <Esc>0xq3@qZZ
0 comments
#107 Michael Levin / @kinnetica - Score: 34 - 12/06/11 @ 12:52
A Konfuzius<Esc>qqYp4wdwa<BS><Esc>^Pa <Esc>q3@qZZ
0 comments
#108 Feanor Celebrimbor / @tumbaletaurea - Score: 34 - 06/04/12 @ 22:16
A Konfuzius<Esc>qtyyp$bde0Pa <Esc>$xq3@tZZ
0 comments
#109 Torben Rasmussen / @rasmustorben - Score: 35 - 08/16/11 @ 09:13
A Konfuzius<Esc>qqyyp4whd$0Pa <Esc>0xq3@qZZ
0 comments
#110 Christopher Brew / @Seph1rothVII - Score: 35 - 01/11/12 @ 12:14
$a Konfuzius<Esc>qqyyp4wdw^Pa <Esc>$xq3@qZZ
0 comments
#111 Ben Friedland / @bfriedland174 - Score: 35 - 05/20/12 @ 23:48
A Konfuzius<Esc><Esc>qqyyp$daw0Pa <Esc>0xq3@qZZ
0 comments
#112 ondrejsimek / @ondrejsimek - Score: 36 - 11/20/11 @ 08:52
A Konfuzius <Esc>0y$4P0qq4wywPr<CR>q4@qddZZ
0 comments
#113 Ravi S Sinha / @ambidextrousTx - Score: 36 - 08/30/12 @ 21:29
A Konfuzius<Esc>qayyp$daw0Pa <Esc>0xq3@a:wq<CR>
0 comments
#114 Petr Palata / @petrpalata - Score: 43 - 01/27/11 @ 16:13
A Konfuzius<Esc>Y4p4dwqqA <Esc>px<CR>q3dw@q2dw@qdw@qZZ
0 comments
#115 niquola / @niquola - Score: 44 - 01/19/11 @ 12:01
A Konfuzius<Esc>yypqq$F D0Pa <Esc>0xyypq@q@q@qdd:wq<CR>
0 comments
#116 Jay Phillips / @jicksta - Score: 45 - 01/29/11 @ 15:49
A Konfuzius<Esc>Y4pqq4wdw0Pa <Esc>$x0qj2@qj3@qj4@q:x<CR>
0 comments
#117 Sergei O. Udalov / @r_wilco - Score: 48 - 01/19/11 @ 01:16
$a Konfuzius<Esc>yypqs$vb<Left>x^Pa <Esc>^<Left>xyypq@s@s@sdd<Esc>:wq<CR>
0 comments
#118 Kristoffer Roupé / @kitofr - Score: 51 - 07/29/11 @ 05:37
A Konfuzius<Esc>v0yo<Esc>Pa <Esc>pyy3PdtKjdtPjdtDjdtVtV<C-Q>kkk$dZZ
0 comments
#119 Анатолий Безгубов / @bezgubov - Score: 59 - 01/19/11 @ 06:01
AKo<BS><BS><Esc>A A<BS>Kofuzius<Left><Left><Left><Left><Left><Left>n<Right><Right><Right><Right><Right><Right><Right><Esc>qqyypd4w$a pxq<BS><BS><BS><Esc>pxq3@qZZ
0 comments
#120 Mike Perham / @mperham - Score: 91 - 01/30/11 @ 15:00
A Konfuzius<Esc>yy4p4wdw<Esc>0Pa <Esc><Down>03dw$a <Esc>p<Esc><Down>02dw$Pup<Esc>b<Left><Left><Left><Left><Left><Left><Left><Left><Left>i <Esc><Down>0dw<Esc>$a <Esc>p<Esc><Up><Up><Up><Up><Up><Down>x<Down><Right>x<Down><Right>x<Down><Right>x:wq<CR>
0 comments
#121 Reza Lotun / @rlotun - Score: 111 - 01/30/11 @ 10:48
$a Konfuzius<Esc>Vyp:s/\(\w\+\) \(\w\+\) \(\w\+\) \(\w\+\) \(\w\+\)/\5 \1\<BS> \2 \3 \4/<CR><Esc>Vyp:<Up><CR>Vyp:<Up><CR>Vyp:<Up><CR><Esc>:w<CR>"<Esc><Esc>:q<CR>
0 comments
#122 shulc / @shulc - Score: 170 - 01/20/11 @ 03:33
A Konfuzius<Esc>yy<Esc>pwwwwdw<Esc>I<Esc>p<Esc>u<Esc>P <Esc>hli <Esc>A<Esc>xlhhhhhlyy<Esc>pwwwwdw<Esc>I<Esc>P <Esc>hli <Esc>Ax<Esc>xx<Esc>yy<Esc>pwwwwdw<Esc>IP<Esc>u<Esc>Pi <Esc>uli <Esc>lllllllllllllllllllllllllllllllllllllllx<Esc>yy<Esc>pwwwwdw<Esc>I<Esc>P <Esc>i <Esc>A<Esc>xx<Esc>u<Esc>:wq<CR>
0 comments
VimGolf