Skip to content

Commit

Permalink
Merge pull request kodecocodes#513 from coolbnjmn/master
Browse files Browse the repository at this point in the history
[Swift4 Migration] claim TwoSum problem
  • Loading branch information
kelvinlauKL authored Jul 28, 2017
2 parents 0026bab + efbc84a commit 910dfef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Two-Sum Problem/Solution 1/2Sum.playground/Contents.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
//: Playground - noun: a place where people can play
// Last checked with: Version 9.0 beta 4 (9M189t)
#if swift(>=4.0)
print("Hello, Swift 4!")
#endif

func twoSumProblem(_ a: [Int], k: Int) -> ((Int, Int))? {
var map = [Int: Int]()
Expand Down
4 changes: 4 additions & 0 deletions Two-Sum Problem/Solution 2/2Sum.playground/Contents.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
//: Playground - noun: a place where people can play
// Last checked with: Version 9.0 beta 4 (9M189t)
#if swift(>=4.0)
print("Hello, Swift 4!")
#endif

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

This file was deleted.

0 comments on commit 910dfef

Please sign in to comment.