Skip to content

Commit 910dfef

Browse files
authored
Merge pull request #513 from coolbnjmn/master
[Swift4 Migration] claim TwoSum problem
2 parents 0026bab + efbc84a commit 910dfef

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
//: Playground - noun: a place where people can play
2+
// Last checked with: Version 9.0 beta 4 (9M189t)
3+
#if swift(>=4.0)
4+
print("Hello, Swift 4!")
5+
#endif
26

37
func twoSumProblem(_ a: [Int], k: Int) -> ((Int, Int))? {
48
var map = [Int: Int]()

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

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
//: Playground - noun: a place where people can play
2+
// Last checked with: Version 9.0 beta 4 (9M189t)
3+
#if swift(>=4.0)
4+
print("Hello, Swift 4!")
5+
#endif
26

37
func twoSumProblem(_ a: [Int], k: Int) -> ((Int, Int))? {
48
var i = 0

Two-Sum Problem/Solution 2/2Sum.playground/timeline.xctimeline

-6
This file was deleted.

0 commit comments

Comments
 (0)