Skip to content

Commit 5eb53e0

Browse files
committed
Update title, Xcode version. Minor refactor.
1 parent d7cc4b6 commit 5eb53e0

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Two-Sum Problem/Solution 1/2Sum.playground/Contents.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//: Playground - noun: a place where people can play
2-
// Last checked with: Version 9.0 beta 4 (9M189t)
1+
//: Two Sum
2+
// Last checked with: Version 9.0 (9A235)
33
#if swift(>=4.0)
44
print("Hello, Swift 4!")
55
#endif
@@ -20,7 +20,4 @@ func twoSum(_ nums: [Int], target: Int) -> (Int, Int)? {
2020
return nil
2121
}
2222

23-
let numbers = [3, 2, 8, 4]
24-
let target = 6
25-
26-
twoSum(numbers, target: target) // expected output: indices 1 and 3
23+
twoSum([3, 2, 8, 4], target: 6) // expected output: indices 1 and 3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<playground version='5.0' target-platform='osx'>
2+
<playground version='5.0' target-platform='osx' display-mode='rendered'>
33
<timeline fileName='timeline.xctimeline'/>
44
</playground>

0 commit comments

Comments
 (0)