Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
【2018/05/08 Otemachi.rb#6】Rubyで取り組むProject Eular
Shu OGAWARA
May 08, 2018
Technology
0
240
【2018/05/08 Otemachi.rb#6】Rubyで取り組むProject Eular
2018/05/08 Otemachi.rb#6でのLTです
Shu OGAWARA
May 08, 2018
Tweet
Share
More Decks by Shu OGAWARA
See All by Shu OGAWARA
ActiveSupport::Concernで開くメタプログラミングの扉 #heiseirubykaigi / The door of meta-programing is opened by ActiveSupport::Concern
expajp
1
1.6k
実践Railsアプリケーション設計 #meetup_rails / Practical Rails Application Design
expajp
4
33k
【2019/07/06 TamaRuby会議01】brainf*ck処理系で理解するパターンマッチングをつかった疎結合な実装
expajp
2
2.1k
その正規表現、異議あり! 〜 ReDoSについて
expajp
2
3.8k
【2018/12/08 RailsDM】「あの人」に学ぶ!駆け出しRailsエンジニアの日常の過ごし方
expajp
8
1.1k
【2018/09/18 Otemachi.rb#9】君(退会したユーザ)の名は。
expajp
0
410
【2018/07/29 TokyuRuby会議12】Project Eulerから生まれたワンライナーたち
expajp
0
440
【2018/07/10 Otemachi.rb#8】情報収集どうしてますか?
expajp
0
570
しくじり先生「新卒2年目の転職」
expajp
3
2.8k
Other Decks in Technology
See All in Technology
Bill One 開発エンジニア 紹介資料
sansantech
PRO
0
110
CES_2023_FleetWise_demo.pdf
sparkgene
0
110
SmartHRからOktaへのSCIM連携で作り出すHRドリブンのアカウント管理
jousysmiler
1
120
OCI DevOps 概要 / OCI DevOps overview
oracle4engineer
PRO
0
490
AI Services 概要 / AI Services overview
oracle4engineer
PRO
0
170
re:Inventで発表があったIoT事例の紹介と考察
kizawa2020
0
180
初めてのデータ移行プロジェクトから得た学び
tjmtmmnk
0
280
Stripe / Okta Customer Identity Cloud(旧Auth0) の採用に至った理由 〜モリサワの SaaS 戦略〜
tomuro
0
130
もし本番ネットワークをまるごと仮想環境に”コピー”できたらうれしいですか? / janog51
corestate55
0
370
インフラ技術基礎勉強会 開催概要
toru_kubota
0
170
ChatGPT for Hacking
anugrahsr
0
4.4k
Airdrop for Open Source Projects
epicsdao
0
690
Featured
See All Featured
Side Projects
sachag
451
37k
Art Directing for the Web. Five minutes with CSS Template Areas
malarkey
196
9.8k
GitHub's CSS Performance
jonrohan
1020
430k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
10
1.3k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
500
130k
Web development in the modern age
philhawksworth
197
9.6k
Testing 201, or: Great Expectations
jmmastey
25
5.7k
Visualization
eitanlees
128
12k
WebSockets: Embracing the real-time Web
robhawkes
58
6k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
2
400
Into the Great Unknown - MozCon
thekraken
2
290
How New CSS Is Changing Everything About Graphic Design on the Web
jensimmons
214
12k
Transcript
2018/05/08 Otemachi.rb#6 RubyProject Eular Shu OGAWARA (@expajp)
+-$ n ( '(@expajp) – 3 – Ruby/Rails*1 –
&% – #)!" – .%,
Project Eular
Project Eular https://projecteuler.net/
Project EularRuby n 1978/- 6: – 78/2,6+1.8000+ n %' –
('$8;< – 45#/% &#&'7 – Write Code Everyday " – )*&! 6 03
n Project Eular n
– Ruby
n Project EularRuby,$' "#!& – 30/.0 - –
1 n (+Project Eular)* %1),
n
n –
String#each_char • 1 – Enumerable#inject •
n 100% ( #
– Enumerable#combination(n) • &) n' ( " – Prime.instance.prime? (prime$) • ( !
n Problem 4 !" $% & #!
. 2'" ! , 9009 = 91 99 . , 3'" !# .
n Project Eular *)$ /F+"- n Ruby,-(!3. – Enumerable&'*:
– ,-(! ; ? 48 – RubyA5=2796 • E<% DC n Rails #BG@0>1