Skip to content

Instantly share code, notes, and snippets.

View asifmimi1's full-sized avatar
📱
IOS Developer

Asif Mimi asifmimi1

📱
IOS Developer
View GitHub Profile
@asifmimi1
asifmimi1 / Task-1.txt
Created August 1, 2019 16:55
Coding is pera and only pera is real baki shob Barcelona
func countPairs (first : [Int], last : [Int], sum: Int ) -> Int{
var num : Int = 0
for i in first[0..<first.count] {
for j in last[0..<last.count]{
if (i+j) == sum{
num += 1
}
}
}