Skip to content

Commit 30f670a

Browse files
committed
Merge remote-tracking branch 'raywenderlich/master'
2 parents 058aefd + 0026bab commit 30f670a

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed

Fizz Buzz/FizzBuzz.playground/Contents.swift

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// last checked with Xcode 9.0b4
2+
#if swift(>=4.0)
3+
print("Hello, Swift 4!")
4+
#endif
5+
16
func fizzBuzz(_ numberOfTurns: Int) {
27
for i in 1...numberOfTurns {
38
var result = ""

GCD/GCD.playground/Contents.swift

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
//: Playground - noun: a place where people can play
22

3+
// last checked with Xcode 9.0b4
4+
#if swift(>=4.0)
5+
print("Hello, Swift 4!")
6+
#endif
7+
38
// Recursive version
49
func gcd(_ a: Int, _ b: Int) -> Int {
510
let r = a % b

Palindromes/Palindromes.playground/Contents.swift

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
//: Playground - noun: a place where people can play
22

3+
// last checked with Xcode 9.0b4
4+
#if swift(>=4.0)
5+
print("Hello, Swift 4!")
6+
#endif
7+
38
import Foundation
49

510
/**

Queue/Queue.playground/Contents.swift

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2+
// last checked with Xcode 9.0b4
3+
#if swift(>=4.0)
4+
print("Hello, Swift 4!")
5+
#endif
6+
17
/*
28
Queue
39

Stack/Stack.playground/Contents.swift

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2+
// last checked with Xcode 9.0b4
3+
#if swift(>=4.0)
4+
print("Hello, Swift 4!")
5+
#endif
6+
17
/*
28
Stack
39

0 commit comments

Comments
 (0)