Skip to content

Instantly share code, notes, and snippets.

Working from home

Sachin Palewar palewar

Working from home
View GitHub Profile
palewar / LearnSwiftTopcoder$100challenge.swift
Last active August 29, 2015 14:07
Solution to 'Learn Swift $100 Playground Challenge' by Topcoder. It's a playground file for XCode 6 Beta 6. Comments include instructions and solution follows.
View LearnSwiftTopcoder$100challenge.swift
// Playground - noun: a place where people can play
import UIKit
import Foundation
// Challenge 21 – Super-Duper Shopping Cart (Use Xcode6-Beta6)
R1 – Create a constant array of string literals called “types” with these