//
//  main.swift
//  Drawer
//
//  Created by  5/27/17.
//  Copyright © 2017  rights reserved.
//

import Foundation

func test() {
    
    let arr: [Int] = [12, 4, 6, 17, 22, 3, 5, 79]
    print(arr)
    sort(arr)
    print(arr)
    let index = binarySearch(arr, 5)
    print("Index=" + String(index))
}

func sort(arr: [Int]) {
    
}

func binarySearch(arr: [Int], target: Int) -> Int {
    return -1
}