Skip to content

Commit 310fbf4

Browse files
authored
Merge pull request kodecocodes#770 from alaphao/swift4.2-egg-drop-problem
[Swift 4.2] Update Egg Drop Problem
2 parents fcb16f0 + 8ed7739 commit 310fbf4

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

Egg Drop Problem/EggDrop.playground/Contents.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
#if swift(>=4.0)
2-
print("Hello, Swift 4!")
3-
#endif
4-
51
drop(numberOfEggs: 2, numberOfFloors: 2) //expected answer: 2
62
drop(numberOfEggs: 2, numberOfFloors: 4) //expected answer: 3
73
drop(numberOfEggs: 2, numberOfFloors: 6) //expected answer: 3
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict/>
5+
</plist>

0 commit comments

Comments
 (0)