Skip to content

Commit

Permalink
Merge pull request kodecocodes#770 from alaphao/swift4.2-egg-drop-pro…
Browse files Browse the repository at this point in the history
…blem

[Swift 4.2] Update Egg Drop Problem
  • Loading branch information
richard-ash authored Nov 4, 2018
2 parents fcb16f0 + 8ed7739 commit 310fbf4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Egg Drop Problem/EggDrop.playground/Contents.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#if swift(>=4.0)
print("Hello, Swift 4!")
#endif

drop(numberOfEggs: 2, numberOfFloors: 2) //expected answer: 2
drop(numberOfEggs: 2, numberOfFloors: 4) //expected answer: 3
drop(numberOfEggs: 2, numberOfFloors: 6) //expected answer: 3
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>

0 comments on commit 310fbf4

Please sign in to comment.