aboutsummaryrefslogtreecommitdiff
path: root/challenge-073
diff options
context:
space:
mode:
authorMaximilian <Shawak@users.noreply.github.com>2020-08-10 14:26:04 +0200
committerGitHub <noreply@github.com>2020-08-10 14:26:04 +0200
commit7929c77c4c268f5966c33dd25ffbb7b66d411fc6 (patch)
treeea50a5b0950b8dd8400e0ac0e752ee3eeac7e2f6 /challenge-073
parenta15356483866595f4f8d579ce75c4b97578c3d54 (diff)
downloadperlweeklychallenge-club-7929c77c4c268f5966c33dd25ffbb7b66d411fc6.tar.gz
perlweeklychallenge-club-7929c77c4c268f5966c33dd25ffbb7b66d411fc6.tar.bz2
perlweeklychallenge-club-7929c77c4c268f5966c33dd25ffbb7b66d411fc6.zip
Create ch-2.rb
Diffstat (limited to 'challenge-073')
-rw-r--r--challenge-073/shawak/ruby/ch-2.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/challenge-073/shawak/ruby/ch-2.rb b/challenge-073/shawak/ruby/ch-2.rb
new file mode 100644
index 0000000000..8661990284
--- /dev/null
+++ b/challenge-073/shawak/ruby/ch-2.rb
@@ -0,0 +1,2 @@
+a=gets.split.map &:to_i
+p (0...a.size).map{|x|a[0..x].select{|y|y<a[x]}.sort.first||0}