Permalink
Browse files

Don't remember what this are for

  • Loading branch information...
1 parent 43ad92c commit 24e61ca88ad8ac67afa4f8fea23bec07738e613e @phss committed Apr 1, 2012
Showing with 13 additions and 2 deletions.
  1. +3 −0 algorithms/spoj/PALIN/palin.rb
  2. +10 −2 algorithms/spoj/PALIN/test.txt
@@ -1,4 +1,7 @@
gets.chomp.to_i.times do
n = gets.chomp
+ digits = n.to_s.split('')
+
+ left_half =
puts n[n.length/2].chr
end
@@ -1,14 +1,22 @@
-6
+10
808
2133
+211333
2999
2100
9999
99999
+2
+34
+9999900000
===
818
2222
+212212
3003
2112
10001
-100001
+100001
+3
+44
+9999999999

0 comments on commit 24e61ca

Please sign in to comment.