From 0767e8ecc54847f62e1bbc468093cef9acbec649 Mon Sep 17 00:00:00 2001 From: charles Date: Wed, 13 Jan 2016 21:15:49 -0500 Subject: [PATCH 01/10] finished 1--09 hw --- .DS_Store | Bin 0 -> 6148 bytes .../Contents.swift | 67 ++++++++++++++++-- .../HWfrom1-09-16(SwiftIntro).xcscmblueprint | 30 ++++++++ 3 files changed, 91 insertions(+), 6 deletions(-) create mode 100644 .DS_Store create mode 100644 HWfrom1-09-16(SwiftIntro).playground/playground.xcworkspace/xcshareddata/HWfrom1-09-16(SwiftIntro).xcscmblueprint diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..379d7529522ce8b8ad6e1794f9e0fb9818017211 GIT binary patch literal 6148 zcmeH~K}!Nb6vzLQLQ)rx-P%(WWVDAA55Xb^MTZU^x@K-^pedz9xBU`*jJ`pq=o9pb z`oA}WxR?+a67inQ`|rM)H@o{AX2t>F8j~~z$^c3%qQwomZ%pc?%-LFqtW%x#F~k5d zDmX-auC)b>fD!m>1Z3{kaEeRZ;sLYsx5AlR#V%TS!X0bJIKw@?wA#Y~M(CrBXLL0( zVO`4TBd$6B>#V8a21oq08Lu#>%DNOiocFtNt1}#oJc|9})xW`D*lebgaR>N(dwtjU zSTTc9ZL`K3sUR3nvt(PiOy;Hit{Rnl}PQAWxv+Z_Bd(pDaHA z=acNt2pEBXMZguCt!9It6!zA+kCVMNV!2`wlXjU`O`!|hv0lhlyv3r%x=1dlNzlwI QBQ*OXpcu>Y0?6u&6aWAK literal 0 HcmV?d00001 diff --git a/HWfrom1-09-16(SwiftIntro).playground/Contents.swift b/HWfrom1-09-16(SwiftIntro).playground/Contents.swift index 488e9ed..8af6dd5 100644 --- a/HWfrom1-09-16(SwiftIntro).playground/Contents.swift +++ b/HWfrom1-09-16(SwiftIntro).playground/Contents.swift @@ -2,22 +2,77 @@ import UIKit -var str = "Hello, playground" -/* +/* Use the link here to get the questions. Then code your solutions below. If it does not require code, just write your answer in comments. https://docs.google.com/document/d/1DQ2aCJ_yUZtazzCfb0PaS81bg61V2ZOSxpABh981xSo/edit +Given an integer N, there is a list of size N-1 that is missing one number from 1 - N(inclusive). Find that number. +*/ + +// 1) I really don't know how to do this one through code so I'm going to try and explain it through writing... Been at it for like 20 minutes and I don't even know where to start + +// Getting help from http://stackoverflow.com/questions/3492302/easy-interview-question-got-harder-given-numbers-1-100-find-the-missing-numbe -1) +let sum = (n + 1)(n / 2) +// then have a for loop that goes through the total sum +var totalSum = 0 +for i in numbers { + totalSum += i +} +return sum - totalSum // because the missing number will always be the difference of the sum and totalSum? -2) +// copy/paste from my other playground because we did these in class -3) +// 2)Given a list of size N containing numbers 1 - N (inclusive). return true if there are duplicates, false if not -4) +func checkForDuplicates() { + + for var i = 0; i < numbers.count; i++ { + for var n = 0; n < numbers.count; n++ { + if n != i { + if numbers[i] == numbers[n] { + return false + } + } + } + } + return true +} +/* Given two lists, find the smallest value that exists in both lists. +L1 = [1,2,5,9] +L2 = [9, 20 , 5] */ + + +// I doubt that this is even remotely correct but I think I understand it. You need to compare both arrays and have a for loop for each, going through each number and finding the smallest value. Once it does, the loop stops and it should return true(?) Not sure what it should be returning. +let arr1 = [1,2,5,9] +let arr2 = [9,20,5] + +func findSmallestValue() { + for var i = 0; i < arr1.count; i++ { + for var n = 0; n < arr2.count; n++ { + if i && n <= 5 { + return true + } + } + } +} + +// Check to see if an integer is a palindrome don’t use casting +// Still don't understand what casting is... this might help https://howtoprogramwithjava.com/java-cast/ + +func isPalindrome(var number : Int) -> Bool { +let originalNumber = number + var finalNum = 0 + while (number > 0) { + finalNum *= 10 + finalNum += number % 10 + number /= 10 + } +return finalNum == number +} diff --git a/HWfrom1-09-16(SwiftIntro).playground/playground.xcworkspace/xcshareddata/HWfrom1-09-16(SwiftIntro).xcscmblueprint b/HWfrom1-09-16(SwiftIntro).playground/playground.xcworkspace/xcshareddata/HWfrom1-09-16(SwiftIntro).xcscmblueprint new file mode 100644 index 0000000..db68f46 --- /dev/null +++ b/HWfrom1-09-16(SwiftIntro).playground/playground.xcworkspace/xcshareddata/HWfrom1-09-16(SwiftIntro).xcscmblueprint @@ -0,0 +1,30 @@ +{ + "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5", + "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { + + }, + "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : 0, + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : 0 + }, + "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "1E33E1B1-A81A-45F7-9378-1596FD355D53", + "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : "..", + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : "unit-4-assignments\/" + }, + "DVTSourceControlWorkspaceBlueprintNameKey" : "HWfrom1-09-16(SwiftIntro)", + "DVTSourceControlWorkspaceBlueprintVersion" : 204, + "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "HWfrom1-09-16(SwiftIntro).playground", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-2-final-project-.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "023C046D7BC226924BBAD83456E847BF59264631" + }, + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/accesscode-2-2\/unit-4-assignments.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" + } + ] +} \ No newline at end of file From 5952b883240bd28e208c6700bb54f8c342c5cf07 Mon Sep 17 00:00:00 2001 From: charles Date: Wed, 13 Jan 2016 22:55:28 -0500 Subject: [PATCH 02/10] sort of finished the big o assignment, have no idea how to do questions 4 and 7... --- .DS_Store | Bin 6148 -> 8196 bytes .../Contents.swift | 45 ++++++++++++++++-- .../HWfrom1-10-016(BigO).xcscmblueprint | 30 ++++++++++++ 3 files changed, 70 insertions(+), 5 deletions(-) create mode 100644 HWfrom1-10-016(BigO).playground/playground.xcworkspace/xcshareddata/HWfrom1-10-016(BigO).xcscmblueprint diff --git a/.DS_Store b/.DS_Store index 379d7529522ce8b8ad6e1794f9e0fb9818017211..99bf6b4ee2bb2f7407db21ec1d573ba5cd350c11 100644 GIT binary patch literal 8196 zcmeHMJxeP=6g}g!5NuLfh;AY36C*}Yu@IIR!N)5s@*ra6$7&Q3H>g4Ew({Rt+F99X zVfFsSd!@g?GarPFyNc#xQM?o8o@Hk4+?jJ{cJ@vHsA4lH03!f~m^J2xDN>TI*Ex{} zTuF|os1Jmwqkuf-v65&l1;T(ZAPfit!hkUF85rQ1t<%se=f15KDGUe$-;x3Se(;zz z`VJ$D=G8%ALIC0*i%sIQ4hOW3=g@Z;S!4~9vZ_R@s$7VntUAj**UonsS+wdBlg%e8M>L=#V zKn=UNMAeiuSr^o*h4Ow_Z&)*PPrdBB9+pZ$^L!updwVl#Ec9&L^)TpL-;JX;tXMC6O2vWQ-p726} z_g4Du%C7q&SA7+m?_29LW1Ll&J;qsjyfQ3x*<;GA7rLAE8!K)Pe|Y=1MgCr_xXFK< zOD1;X4Br1Y3}#|CW1gGX=Kijs(!R5&*80qI%WjKb=g9(sJj^h5jvybS!^T2A#>MO$9D>Y1 leLx_<4J2GaHf${X&ODi4#uH>80~5q Date: Fri, 15 Jan 2016 16:37:19 -0500 Subject: [PATCH 03/10] added some files --- .DS_Store | Bin 8196 -> 10244 bytes .../Contents.swift | 7 ++++ .../Contents.swift | 13 +++++--- .../timeline.xctimeline | 0 .../Contents.swift | 29 +++++++++++++++++ .../contents.xcplayground | 4 +++ .../contents.xcworkspacedata | 7 ++++ ...-14-16(Logic+Discrete_Math).xcscmblueprint | 30 ++++++++++++++++++ .../timeline.xctimeline | 6 ++++ 9 files changed, 91 insertions(+), 5 deletions(-) create mode 100644 HWfrom1-10-016(BigO).playground/Pages/Untitled Page 2.xcplaygroundpage/Contents.swift rename HWfrom1-10-016(BigO).playground/{ => Pages/Untitled Page.xcplaygroundpage}/Contents.swift (82%) rename HWfrom1-10-016(BigO).playground/{ => Pages/Untitled Page.xcplaygroundpage}/timeline.xctimeline (100%) create mode 100644 HWfrom1-14-16(Logic+Discrete_Math).playground/Contents.swift create mode 100644 HWfrom1-14-16(Logic+Discrete_Math).playground/contents.xcplayground create mode 100644 HWfrom1-14-16(Logic+Discrete_Math).playground/playground.xcworkspace/contents.xcworkspacedata create mode 100644 HWfrom1-14-16(Logic+Discrete_Math).playground/playground.xcworkspace/xcshareddata/HWfrom1-14-16(Logic+Discrete_Math).xcscmblueprint create mode 100644 HWfrom1-14-16(Logic+Discrete_Math).playground/timeline.xctimeline diff --git a/.DS_Store b/.DS_Store index 99bf6b4ee2bb2f7407db21ec1d573ba5cd350c11..418948b365b0ae991aa41255707c52db1f6385cb 100644 GIT binary patch literal 10244 zcmeI2&ubGw6vw|~dno9^gWd%9AX?FsM%2OlKOmfdIe?tCh!( zv6)fqds|E8i0?T`X{Zk*7^009*0EU{tsP202`B+2pahh_zd(TB*|w}4by8a;pahga zM!@=qfYr*-%hXA69c&~7pj>9R6h1Q!5S_rw(96_GQRSR2dN5wq_z=T5b-oYmaLUlj z)JdlfR&qUB{EQ&X+Fvc$PEt|B&1|H)IKRbxolhAf!KJDRF(JB|W$gbfX5>)N%v;&qmAm&H-ugc7R=n$9c&a&P%u#yx4-$9&>_TI9DoeD-To>*j27@bQ~HZZqdCau%;qC+8_1&|?g+UGx>_uGM_rY~4KP zPwTaF&eom5xi#ZHU#4GhUg0)5_30UUxPXXq%%^>N-U;hN+@bfK(C1eAeq4IZbJn<8 zj_LaouY_r>t7X2Xfz^t33*~UyC;=s)1eAahPy!VQEV(g(&HrEj^Y8x^X3`-_KneV> z1k7^OjXK=D&#jlvVRP*P>mycM?6}lPQDGzLcuGmf^ADSjUuCspT|DQWL*JJ=De4>} v>Xa^%%vDy)JLF<0jsJiBch_I#$qwb5#o>9*8vidQ+mK^ABO?C^h1Dm~ delta 148 zcmZn(XmOBWU|?W$DortDU;r^WfEYvza8E20o2aMAD6lbLH$S7mWCcN=%@G2>nAo)B zfYS1l{Y32ebMswXQc6pb85l0@In%~4nNiqza*m+z@Rwbabu|^BLH6XA;SOw diff --git a/HWfrom1-10-016(BigO).playground/Pages/Untitled Page 2.xcplaygroundpage/Contents.swift b/HWfrom1-10-016(BigO).playground/Pages/Untitled Page 2.xcplaygroundpage/Contents.swift new file mode 100644 index 0000000..854a033 --- /dev/null +++ b/HWfrom1-10-016(BigO).playground/Pages/Untitled Page 2.xcplaygroundpage/Contents.swift @@ -0,0 +1,7 @@ +//: [Previous](@previous) + +import Foundation + +var str = "Hello, playground" + +//: [Next](@next) diff --git a/HWfrom1-10-016(BigO).playground/Contents.swift b/HWfrom1-10-016(BigO).playground/Pages/Untitled Page.xcplaygroundpage/Contents.swift similarity index 82% rename from HWfrom1-10-016(BigO).playground/Contents.swift rename to HWfrom1-10-016(BigO).playground/Pages/Untitled Page.xcplaygroundpage/Contents.swift index 18457f3..8b44cb9 100644 --- a/HWfrom1-10-016(BigO).playground/Contents.swift +++ b/HWfrom1-10-016(BigO).playground/Pages/Untitled Page.xcplaygroundpage/Contents.swift @@ -18,19 +18,20 @@ time to run = 200 pico a) 241 picoseconds b) O(n^2) -c) O(n^3) +c) O(n^3) correct answer 0(n^4) because makeEvenMoreAwesome gets done twice? O(n^2)(2) 2) -a) O(n^3), O(n^4) O(n^2) +a) O(n^3), O(n^4) b) O(n) -c) O(n^2 log(n)) -d) O(^2) +c) O(n^2 log(n)) correct answer O(n log(n)) +d) O(n^2) 3) a) binary search tree -b) skip list +b) skip list correct answer: use arrays c) maybe you could use two queues? one for storing searches as you type, and another for the searched music + answer to c: probably a tree 4) I don't know the answer to this. What exercise 1? The one from Linus? Wording is confusing for me... @@ -45,6 +46,8 @@ func multiplyOldSchool() { 6) */ +// usually when you divide something by two, it's usually O(log^n)... + func russianMath() { for (i = 0; i < 104; i++) { 13 * 8 diff --git a/HWfrom1-10-016(BigO).playground/timeline.xctimeline b/HWfrom1-10-016(BigO).playground/Pages/Untitled Page.xcplaygroundpage/timeline.xctimeline similarity index 100% rename from HWfrom1-10-016(BigO).playground/timeline.xctimeline rename to HWfrom1-10-016(BigO).playground/Pages/Untitled Page.xcplaygroundpage/timeline.xctimeline diff --git a/HWfrom1-14-16(Logic+Discrete_Math).playground/Contents.swift b/HWfrom1-14-16(Logic+Discrete_Math).playground/Contents.swift new file mode 100644 index 0000000..bc0df91 --- /dev/null +++ b/HWfrom1-14-16(Logic+Discrete_Math).playground/Contents.swift @@ -0,0 +1,29 @@ +//: Playground - noun: a place where people can play + +import UIKit + +var str = "Hello, playground" + + +/* + +Question 1: https://www.hackerrank.com/challenges/minimum-draws + +Copy and paste your code: + +What is the big O runtime of your code?: + +Question 2: https://www.hackerrank.com/challenges/handshake + +Copy and paste your code: + +What is the big O runtime of your code?: + +Question 3: https://www.hackerrank.com/challenges/connecting-towns + +Copy and paste your code: + +What is the big O runtime of your code?: + +*/ + diff --git a/HWfrom1-14-16(Logic+Discrete_Math).playground/contents.xcplayground b/HWfrom1-14-16(Logic+Discrete_Math).playground/contents.xcplayground new file mode 100644 index 0000000..5da2641 --- /dev/null +++ b/HWfrom1-14-16(Logic+Discrete_Math).playground/contents.xcplayground @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/HWfrom1-14-16(Logic+Discrete_Math).playground/playground.xcworkspace/contents.xcworkspacedata b/HWfrom1-14-16(Logic+Discrete_Math).playground/playground.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/HWfrom1-14-16(Logic+Discrete_Math).playground/playground.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/HWfrom1-14-16(Logic+Discrete_Math).playground/playground.xcworkspace/xcshareddata/HWfrom1-14-16(Logic+Discrete_Math).xcscmblueprint b/HWfrom1-14-16(Logic+Discrete_Math).playground/playground.xcworkspace/xcshareddata/HWfrom1-14-16(Logic+Discrete_Math).xcscmblueprint new file mode 100644 index 0000000..8c67524 --- /dev/null +++ b/HWfrom1-14-16(Logic+Discrete_Math).playground/playground.xcworkspace/xcshareddata/HWfrom1-14-16(Logic+Discrete_Math).xcscmblueprint @@ -0,0 +1,30 @@ +{ + "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5", + "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { + + }, + "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : 0, + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : 0 + }, + "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "7F31043E-49E2-4216-A85D-57E0ECE2403C", + "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : "..", + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : "assignments\/" + }, + "DVTSourceControlWorkspaceBlueprintNameKey" : "HWfrom1-14-16(Logic+Discrete_Math)", + "DVTSourceControlWorkspaceBlueprintVersion" : 204, + "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "HWfrom1-14-16(Logic+Discrete_Math).playground", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-2-final-project-.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "023C046D7BC226924BBAD83456E847BF59264631" + }, + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-4-assignments.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" + } + ] +} \ No newline at end of file diff --git a/HWfrom1-14-16(Logic+Discrete_Math).playground/timeline.xctimeline b/HWfrom1-14-16(Logic+Discrete_Math).playground/timeline.xctimeline new file mode 100644 index 0000000..bf468af --- /dev/null +++ b/HWfrom1-14-16(Logic+Discrete_Math).playground/timeline.xctimeline @@ -0,0 +1,6 @@ + + + + + From 038a42abe038c225c86c02b829fc13b5ec5a5df8 Mon Sep 17 00:00:00 2001 From: charles Date: Fri, 15 Jan 2016 19:52:31 -0500 Subject: [PATCH 04/10] jan16 homework submission --- .../Contents.swift | 39 ++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/HWfrom1-14-16(Logic+Discrete_Math).playground/Contents.swift b/HWfrom1-14-16(Logic+Discrete_Math).playground/Contents.swift index bc0df91..e91638b 100644 --- a/HWfrom1-14-16(Logic+Discrete_Math).playground/Contents.swift +++ b/HWfrom1-14-16(Logic+Discrete_Math).playground/Contents.swift @@ -9,21 +9,58 @@ var str = "Hello, playground" Question 1: https://www.hackerrank.com/challenges/minimum-draws +// Could you write a for loop that keeps on looping until it finds the matching pair? Use n + 1 for each iteration until you find the right pair. + +var numberOfDraws = NSArray() + +// n + 1 until matching pair is found +// I do not know how to solve this with code...I can sort of understand and process it just by reading the question, +// but having to put it into code, especially swift, is really hard for me + +/* Copy and paste your code: What is the big O runtime of your code?: +O(n) since you only need 1 for loop and you cancel the other variables out which leaves O(n) + Question 2: https://www.hackerrank.com/challenges/handshake +use the non-repeating formula + +if there are 5 people shaking hands but only once and never repeating + +1 x 2 +1 x 3 +1 x 4 +1 x 5 += 4 handshakes + +n! / (r! * (n-r)!) + + Copy and paste your code: What is the big O runtime of your code?: +O((n^2) Question 3: https://www.hackerrank.com/challenges/connecting-towns Copy and paste your code: -What is the big O runtime of your code?: +I genuinely do not know the answers to these questions. Googling doesn't help because I can't find a decent solution and step by step process, and the fact that this is considered easy stresses me out like crazy... + +I'm assuming Gandalf will want to only go through each town once, so use the non-repeating combination formula: n! / (r!*(n-r)!) + +What is the big O runtime of your code? +O(n^2) + +*/ */ + +class Solution { + var int = 7 + +} From 3f2c9c8d650525aed98542152daeef9aa5f21f71 Mon Sep 17 00:00:00 2001 From: charles Date: Wed, 20 Jan 2016 19:05:15 -0500 Subject: [PATCH 05/10] commit --- .DS_Store | Bin 10244 -> 8196 bytes .../Contents.swift | 4 ++-- .../contents.xcplayground | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.DS_Store b/.DS_Store index 418948b365b0ae991aa41255707c52db1f6385cb..9aa81f5828986a3c8a3b54b1aa12c58d0ae39758 100644 GIT binary patch literal 8196 zcmeHM!AdJJ6g^QFf*|r%?wo}SMJf)6;%+FTC@2bDxKwF?9UtKi%W#egF1Qgda(YvzcC z_CO0wgeYMRTe;qhH9utT5 z=%BDE0C9?HTlg&LfY<~cBaewgwy+pyN_3{irx?bWQy=(#k;lZLGl%iXhw+|`&rpo@ z&hZ1=9VT+9QW;PN@(jq=Wf8kL#$R+Y`Fn|({05d#!7VP>+QlBODW%skR?)^4&Txmi z)%4g_yQ+tkYOC3HZvHHM=h)3w9M^i?D)8EGyjc(5Ht%MuR@m6>Mw*i&nfOAE?~pep za%KncEw>}iaR8$uj+o^!kx7;Y@VHK`V{xDRv`!|gSV2s@ z;Zq0a+`;EK!2$Pf7meXKo_#3RTbh5rw+md`fY=o1EgLtx|Ceptc2eg}h|N^oBvxJ4 zfHC5!LaZ>B9jhDaiFrAWWTp*5k%TmOlKOmfdIe?tCh!( zv6)fqds|E8i0?T`X{Zk*7^009*0EU{tsP202`B+2pahh_zd(TB*|w}4by8a;pahga zM!@=qfYr*-%hXA69c&~7pj>9R6h1Q!5S_rw(96_GQRSR2dN5wq_z=T5b-oYmaLUlj z)JdlfR&qUB{EQ&X+Fvc$PEt|B&1|H)IKRbxolhAf!KJDRF(JB|W$gbfX5>)N%v;&qmAm&H-ugc7R=n$9c&a&P%u#yx4-$9&>_TI9DoeD-To>*j27@bQ~HZZqdCau%;qC+8_1&|?g+UGx>_uGM_rY~4KP zPwTaF&eom5xi#ZHU#4GhUg0)5_30UUxPXXq%%^>N-U;hN+@bfK(C1eAeq4IZbJn<8 zj_LaouY_r>t7X2Xfz^t33*~UyC;=s)1eAahPy!VQEV(g(&HrEj^Y8x^X3`-_KneV> z1k7^OjXK=D&#jlvVRP*P>mycM?6}lPQDGzLcuGmf^ADSjUuCspT|DQWL*JJ=De4>} v>Xa^%%vDy)JLF<0jsJiBch_I#$qwb5#o>9*8vidQ+mK^ABO?C^h1Dm~ diff --git a/HWfrom1-10-016(BigO).playground/Pages/Untitled Page.xcplaygroundpage/Contents.swift b/HWfrom1-10-016(BigO).playground/Pages/Untitled Page.xcplaygroundpage/Contents.swift index 8b44cb9..c97a6f6 100644 --- a/HWfrom1-10-016(BigO).playground/Pages/Untitled Page.xcplaygroundpage/Contents.swift +++ b/HWfrom1-10-016(BigO).playground/Pages/Untitled Page.xcplaygroundpage/Contents.swift @@ -23,7 +23,7 @@ c) O(n^3) correct answer 0(n^4) because makeEvenMoreAwesome gets done twice? O( 2) a) O(n^3), O(n^4) b) O(n) -c) O(n^2 log(n)) correct answer O(n log(n)) +c) O(n^2 log(n)) d) O(n^2) @@ -50,7 +50,7 @@ func multiplyOldSchool() { func russianMath() { for (i = 0; i < 104; i++) { - 13 * 8 + 13 * 83 } } // complexity should be O(n^2) diff --git a/HWfrom1-10-016(BigO).playground/contents.xcplayground b/HWfrom1-10-016(BigO).playground/contents.xcplayground index 5da2641..8d8c40c 100644 --- a/HWfrom1-10-016(BigO).playground/contents.xcplayground +++ b/HWfrom1-10-016(BigO).playground/contents.xcplayground @@ -1,4 +1,2 @@ - - - \ No newline at end of file + \ No newline at end of file From 6f7966904f6d748c06dc422d9eddae57024c18e1 Mon Sep 17 00:00:00 2001 From: charles Date: Thu, 21 Jan 2016 14:37:35 -0500 Subject: [PATCH 06/10] attempted 1 and 2 --- .DS_Store | Bin 8196 -> 8196 bytes .../Contents.swift | 75 +++++++++++++++--- ...rom1-17-16(Lists and Sorts).xcscmblueprint | 30 +++++++ 3 files changed, 94 insertions(+), 11 deletions(-) create mode 100644 HWFrom1-17-16(Lists and Sorts).playground/playground.xcworkspace/xcshareddata/HWFrom1-17-16(Lists and Sorts).xcscmblueprint diff --git a/.DS_Store b/.DS_Store index 9aa81f5828986a3c8a3b54b1aa12c58d0ae39758..a01871d9061b2b3e5d0cea6f8ee36492875a20c4 100644 GIT binary patch delta 363 zcmZp1XmOa}&&a%thmD0_7&o&^d}EosUetOr3EDm~0suJPDYO6p diff --git a/HWFrom1-17-16(Lists and Sorts).playground/Contents.swift b/HWFrom1-17-16(Lists and Sorts).playground/Contents.swift index 5d51051..c0fca20 100644 --- a/HWFrom1-17-16(Lists and Sorts).playground/Contents.swift +++ b/HWFrom1-17-16(Lists and Sorts).playground/Contents.swift @@ -11,16 +11,69 @@ Work on your solutions here. Link: https://docs.google.com/document/d/1XioaEqk6VqUPA-ccQhkqP3eAoDthxYyOM9vSPB7fDkg/edit#heading=h.uopysoy45zmw -1) +1) +*/ + +var sudokuBoard = [ + [5, 0, 8, 0, 7, 3, 1, 9, 0], + [9, 0, 0, 6, 0, 0, 4, 0, 8], + [0, 0, 0, 9, 0, 8, 0, 3, 5], + [0, 7, 0, 0, 0, 0, 0, 6, 0], + [0, 0, 2, 0, 0, 0, 9, 0, 0], + [0, 1, 0, 0, 0, 0, 0, 8, 0], + [1, 9, 0, 3, 0, 6, 0, 0, 0], + [2, 0, 3, 0, 0, 7, 0, 0, 9], + [0, 8, 7, 1, 9, 0, 3, 0, 4]] + +var rowNumbers = [[Int]]() +var columbNumbers = [[Int]]() +var potentialNumbers = [Int]() +var allNumbers = [Int]() + + +func getRowNumbers(sudokuBoard:[[Int]], row: Int, column: Int) -> [Int] { + for var i = 0; i <= sudokuBoard.count - 1; i++ { + for var j = 0; i <= sudokuBoard[i].count; j++ { + print(sudokuBoard[i][j]) + // allNumbers.append.[i] + } + } + return (sudokuBoard[0]) +} + + + +for i in sudokuBoard { + for j in i { + print(j) + } +} + +for (var k = 0; k < sudokuBoard.count; k++) { + for (var l = 0; l < k; l++) { + print(l) + + } +} + +// this is as far as I got with question 1. i think using a set and the exclusiveOr function could make this +// a lot easier to solve + +// 2) +var rotateArray = [ + [1,2,3,4], + [5,6,7,8], + [9,0,1,2], + [3,4,5,6]] + +func rotate90Degrees(rotateArray:[[Int]], row: Int, column: Int) -> [Int] { + for i in rotateArray { + for j in i { + print(j) + } + } + return [3,9,5,1] + +} - -2) - - - -3) - - - -*/ \ No newline at end of file diff --git a/HWFrom1-17-16(Lists and Sorts).playground/playground.xcworkspace/xcshareddata/HWFrom1-17-16(Lists and Sorts).xcscmblueprint b/HWFrom1-17-16(Lists and Sorts).playground/playground.xcworkspace/xcshareddata/HWFrom1-17-16(Lists and Sorts).xcscmblueprint new file mode 100644 index 0000000..e0b0b5a --- /dev/null +++ b/HWFrom1-17-16(Lists and Sorts).playground/playground.xcworkspace/xcshareddata/HWFrom1-17-16(Lists and Sorts).xcscmblueprint @@ -0,0 +1,30 @@ +{ + "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5", + "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { + + }, + "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : 0, + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : 0 + }, + "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "86FC27F0-DA27-4259-BA97-C66B429CB6A6", + "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : "..", + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : "unit-4-assignments\/" + }, + "DVTSourceControlWorkspaceBlueprintNameKey" : "HWFrom1-17-16(Lists and Sorts)", + "DVTSourceControlWorkspaceBlueprintVersion" : 204, + "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "HWFrom1-17-16(Lists and Sorts).playground", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-2-final-project-.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "023C046D7BC226924BBAD83456E847BF59264631" + }, + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-4-assignments.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" + } + ] +} \ No newline at end of file From 6afb29aefa3ebf18ff070098385738392d368a6a Mon Sep 17 00:00:00 2001 From: charles Date: Thu, 28 Jan 2016 16:37:02 -0500 Subject: [PATCH 07/10] added command line for question 3 --- .DS_Store | Bin 10244 -> 10244 bytes .../FindMyName.xcodeproj/project.pbxproj | 246 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/FindMyName.xcscmblueprint | 30 +++ FindMyName/FindMyName/main.swift | 35 +++ .../Contents.swift | 35 ++- .../HWFrom1-24(Recursion).xcscmblueprint | 30 +++ .../HWfrom1-23-16(Recursion).xcscmblueprint | 30 +++ 8 files changed, 404 insertions(+), 9 deletions(-) create mode 100644 FindMyName/FindMyName.xcodeproj/project.pbxproj create mode 100644 FindMyName/FindMyName.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 FindMyName/FindMyName.xcodeproj/project.xcworkspace/xcshareddata/FindMyName.xcscmblueprint create mode 100644 FindMyName/FindMyName/main.swift create mode 100644 HWFrom1-24(Recursion).playground/playground.xcworkspace/xcshareddata/HWFrom1-24(Recursion).xcscmblueprint create mode 100644 HWfrom1-23-16(Recursion).playground/playground.xcworkspace/xcshareddata/HWfrom1-23-16(Recursion).xcscmblueprint diff --git a/.DS_Store b/.DS_Store index 8bf3f7d913c0ad30aca0a674c3245aa5210fe29b..23ab523649440fbc174f5aba0ea930e879dcb5e1 100644 GIT binary patch delta 103 zcmZn(XbG6$&nUhzU^hRb_+$k^pUDTr`8KBsu(2_zT;7}~#>2=|z%coOxC=;}NnHuZ c3}7*JWPpg}2=Xx&Y%H9>zL{Mi6}Ju(09I5U-2eap delta 111 zcmZn(XbG6$&nU4mU^hRb#AF3QpUDTr`8KBsu(2^Qt=XI>#>2?uz%coOxC=;}i75`q n3}8_eVgQM`OIQg=;ofrXFLxku diff --git a/FindMyName/FindMyName.xcodeproj/project.pbxproj b/FindMyName/FindMyName.xcodeproj/project.pbxproj new file mode 100644 index 0000000..3cdbb5f --- /dev/null +++ b/FindMyName/FindMyName.xcodeproj/project.pbxproj @@ -0,0 +1,246 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + BFC2CC2D1C5ABFAF000252A7 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFC2CC2C1C5ABFAF000252A7 /* main.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + BFC2CC271C5ABFAF000252A7 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = /usr/share/man/man1/; + dstSubfolderSpec = 0; + files = ( + ); + runOnlyForDeploymentPostprocessing = 1; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + BFC2CC291C5ABFAF000252A7 /* FindMyName */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = FindMyName; sourceTree = BUILT_PRODUCTS_DIR; }; + BFC2CC2C1C5ABFAF000252A7 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + BFC2CC261C5ABFAF000252A7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + BFC2CC201C5ABFAE000252A7 = { + isa = PBXGroup; + children = ( + BFC2CC2B1C5ABFAF000252A7 /* FindMyName */, + BFC2CC2A1C5ABFAF000252A7 /* Products */, + ); + sourceTree = ""; + }; + BFC2CC2A1C5ABFAF000252A7 /* Products */ = { + isa = PBXGroup; + children = ( + BFC2CC291C5ABFAF000252A7 /* FindMyName */, + ); + name = Products; + sourceTree = ""; + }; + BFC2CC2B1C5ABFAF000252A7 /* FindMyName */ = { + isa = PBXGroup; + children = ( + BFC2CC2C1C5ABFAF000252A7 /* main.swift */, + ); + path = FindMyName; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + BFC2CC281C5ABFAF000252A7 /* FindMyName */ = { + isa = PBXNativeTarget; + buildConfigurationList = BFC2CC301C5ABFAF000252A7 /* Build configuration list for PBXNativeTarget "FindMyName" */; + buildPhases = ( + BFC2CC251C5ABFAF000252A7 /* Sources */, + BFC2CC261C5ABFAF000252A7 /* Frameworks */, + BFC2CC271C5ABFAF000252A7 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = FindMyName; + productName = FindMyName; + productReference = BFC2CC291C5ABFAF000252A7 /* FindMyName */; + productType = "com.apple.product-type.tool"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + BFC2CC211C5ABFAF000252A7 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0720; + LastUpgradeCheck = 0720; + ORGANIZATIONNAME = "Charles Kang"; + TargetAttributes = { + BFC2CC281C5ABFAF000252A7 = { + CreatedOnToolsVersion = 7.2; + }; + }; + }; + buildConfigurationList = BFC2CC241C5ABFAF000252A7 /* Build configuration list for PBXProject "FindMyName" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = BFC2CC201C5ABFAE000252A7; + productRefGroup = BFC2CC2A1C5ABFAF000252A7 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + BFC2CC281C5ABFAF000252A7 /* FindMyName */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + BFC2CC251C5ABFAF000252A7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BFC2CC2D1C5ABFAF000252A7 /* main.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + BFC2CC2E1C5ABFAF000252A7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.11; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + BFC2CC2F1C5ABFAF000252A7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.11; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + }; + name = Release; + }; + BFC2CC311C5ABFAF000252A7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + BFC2CC321C5ABFAF000252A7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + BFC2CC241C5ABFAF000252A7 /* Build configuration list for PBXProject "FindMyName" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BFC2CC2E1C5ABFAF000252A7 /* Debug */, + BFC2CC2F1C5ABFAF000252A7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + BFC2CC301C5ABFAF000252A7 /* Build configuration list for PBXNativeTarget "FindMyName" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BFC2CC311C5ABFAF000252A7 /* Debug */, + BFC2CC321C5ABFAF000252A7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = BFC2CC211C5ABFAF000252A7 /* Project object */; +} diff --git a/FindMyName/FindMyName.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/FindMyName/FindMyName.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..015b558 --- /dev/null +++ b/FindMyName/FindMyName.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/FindMyName/FindMyName.xcodeproj/project.xcworkspace/xcshareddata/FindMyName.xcscmblueprint b/FindMyName/FindMyName.xcodeproj/project.xcworkspace/xcshareddata/FindMyName.xcscmblueprint new file mode 100644 index 0000000..0ba4e3b --- /dev/null +++ b/FindMyName/FindMyName.xcodeproj/project.xcworkspace/xcshareddata/FindMyName.xcscmblueprint @@ -0,0 +1,30 @@ +{ + "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5", + "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { + + }, + "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : 0, + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : 0 + }, + "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "F99ED118-F946-491B-9E4D-CADBB75CBA04", + "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : "..", + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : "unit-4-assignments\/" + }, + "DVTSourceControlWorkspaceBlueprintNameKey" : "FindMyName", + "DVTSourceControlWorkspaceBlueprintVersion" : 204, + "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "FindMyName\/FindMyName.xcodeproj", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-2-final-project-.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "023C046D7BC226924BBAD83456E847BF59264631" + }, + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-4-assignments.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" + } + ] +} \ No newline at end of file diff --git a/FindMyName/FindMyName/main.swift b/FindMyName/FindMyName/main.swift new file mode 100644 index 0000000..9b1c66d --- /dev/null +++ b/FindMyName/FindMyName/main.swift @@ -0,0 +1,35 @@ +// +// main.swift +// FindMyName +// +// Created by Charles Kang on 1/28/16. +// Copyright © 2016 Charles Kang. All rights reserved. +// + +import Foundation + +func findFile(name: String, atPath: String) -> String { + let fileManager = NSFileManager.defaultManager() + let contents = + try! fileManager.contentsOfDirectoryAtPath(atPath) + for fileOrDir in contents { + var isDir = ObjCBool(false); + let fullPath = atPath + "/" + fileOrDir + let exists = fileManager.fileExistsAtPath(fullPath, isDirectory: &isDir) + if exists && Bool(isDir) { + // YOUR CODE HERE + print("DIR: " + fileOrDir) + } else if exists { + // YOUR CODE HERE + print("FILE: " + fileOrDir) + } else { + print("NEITHER: " + fileOrDir) + } + } + return "NOT FOUND" +} + +print(findFile("awesome-idea.txt", atPath: "/Users/charleskang/Documents")) + + + diff --git a/HWFrom1-24(Recursion).playground/Contents.swift b/HWFrom1-24(Recursion).playground/Contents.swift index 1c44504..224b550 100644 --- a/HWFrom1-24(Recursion).playground/Contents.swift +++ b/HWFrom1-24(Recursion).playground/Contents.swift @@ -10,16 +10,33 @@ Homework link: https://docs.google.com/document/d/1INvOynuggw69yLRNg3y-TPwBiYb3l //Question 1 - - - - - +// http://stackoverflow.com/questions/28161197/swift-vs-objective-c-fibonacci-sequence-speed-comparison + +func fib(num: Int) -> Int{ + if(num == 0){ + return 0; + } + if(num == 1){ + return 1; + } + return fib(num - 1) + fib(num - 2); +} //Question 2 - - - -//Question 3 \ No newline at end of file +// not sure if this is correct, i don't think it is +var stepNum = 0 +func newStepUp() -> Bool { + let success = Int(arc4random_uniform(4)) > 0 + if (success) { + stepNum++ + print("Yay \(stepNum)") + } else { + stepNum-- + print("Noo \(stepNum)") + } + return success +} + +//Question 3 diff --git a/HWFrom1-24(Recursion).playground/playground.xcworkspace/xcshareddata/HWFrom1-24(Recursion).xcscmblueprint b/HWFrom1-24(Recursion).playground/playground.xcworkspace/xcshareddata/HWFrom1-24(Recursion).xcscmblueprint new file mode 100644 index 0000000..fdff420 --- /dev/null +++ b/HWFrom1-24(Recursion).playground/playground.xcworkspace/xcshareddata/HWFrom1-24(Recursion).xcscmblueprint @@ -0,0 +1,30 @@ +{ + "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5", + "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { + + }, + "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : 0, + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : 0 + }, + "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "59B9B9C5-FD57-4334-B265-62F0807339F5", + "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : "..", + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : "unit-4-assignments\/" + }, + "DVTSourceControlWorkspaceBlueprintNameKey" : "HWFrom1-24(Recursion)", + "DVTSourceControlWorkspaceBlueprintVersion" : 204, + "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "HWFrom1-24(Recursion).playground", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-2-final-project-.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "023C046D7BC226924BBAD83456E847BF59264631" + }, + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-4-assignments.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" + } + ] +} \ No newline at end of file diff --git a/HWfrom1-23-16(Recursion).playground/playground.xcworkspace/xcshareddata/HWfrom1-23-16(Recursion).xcscmblueprint b/HWfrom1-23-16(Recursion).playground/playground.xcworkspace/xcshareddata/HWfrom1-23-16(Recursion).xcscmblueprint new file mode 100644 index 0000000..da8be19 --- /dev/null +++ b/HWfrom1-23-16(Recursion).playground/playground.xcworkspace/xcshareddata/HWfrom1-23-16(Recursion).xcscmblueprint @@ -0,0 +1,30 @@ +{ + "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5", + "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { + + }, + "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : 0, + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : 0 + }, + "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "231E4895-2E88-4557-B912-A294B20B917C", + "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : "..", + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : "unit-4-assignments\/" + }, + "DVTSourceControlWorkspaceBlueprintNameKey" : "HWfrom1-23-16(Recursion)", + "DVTSourceControlWorkspaceBlueprintVersion" : 204, + "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "HWfrom1-23-16(Recursion).playground", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-2-final-project-.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "023C046D7BC226924BBAD83456E847BF59264631" + }, + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-4-assignments.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" + } + ] +} \ No newline at end of file From 73599e2dfac515bbc52d97c6690cac1fe7daf516 Mon Sep 17 00:00:00 2001 From: charles Date: Sat, 30 Jan 2016 16:43:28 -0500 Subject: [PATCH 08/10] commit --- .DS_Store | Bin 10244 -> 10244 bytes FindMyName/FindMyName/main.swift | 9 +++++++-- .../Contents.swift | 14 +++++++++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.DS_Store b/.DS_Store index 23ab523649440fbc174f5aba0ea930e879dcb5e1..6b9415d09a954987ff14637bad710f64ef9a880b 100644 GIT binary patch delta 39 pcmZn(XbISGPMk@jWby^^0G5Q03=BYq%j6t!;my?&!Tb;j696T{4b}hv delta 39 pcmZn(XbISGPMk?yY4Qc}02Wh61_mI*Wpa+V@aAfXV19^%2>=F=3{?OC diff --git a/FindMyName/FindMyName/main.swift b/FindMyName/FindMyName/main.swift index 9b1c66d..ff3c593 100644 --- a/FindMyName/FindMyName/main.swift +++ b/FindMyName/FindMyName/main.swift @@ -17,7 +17,7 @@ func findFile(name: String, atPath: String) -> String { let fullPath = atPath + "/" + fileOrDir let exists = fileManager.fileExistsAtPath(fullPath, isDirectory: &isDir) if exists && Bool(isDir) { - // YOUR CODE HERE + print("DIR: " + fileOrDir) } else if exists { // YOUR CODE HERE @@ -29,7 +29,12 @@ func findFile(name: String, atPath: String) -> String { return "NOT FOUND" } -print(findFile("awesome-idea.txt", atPath: "/Users/charleskang/Documents")) +print(findFile("awesome-idea.txt", atPath: "/Users/charleshyowonkang/Documents")) + + +func mergeSort(left: [Int], _ right: [Int]) -> [Int] { + return [] // change this +} diff --git a/HWFrom1-24(Recursion).playground/Contents.swift b/HWFrom1-24(Recursion).playground/Contents.swift index 224b550..ce81224 100644 --- a/HWFrom1-24(Recursion).playground/Contents.swift +++ b/HWFrom1-24(Recursion).playground/Contents.swift @@ -22,8 +22,17 @@ func fib(num: Int) -> Int{ return fib(num - 1) + fib(num - 2); } -//Question 2 +// cameron's code +//func fib(n: Int) -> Int { +// var a = 0 +// var b = 1 +// for _ in 0.. Bool { return success } +// cameron's code + + //Question 3 From f31309695866aadc5a8604368f61fd7829c62d07 Mon Sep 17 00:00:00 2001 From: charles Date: Wed, 3 Feb 2016 21:18:35 -0500 Subject: [PATCH 09/10] push for 1/30/16 HW. can't answer #3 --- .DS_Store | Bin 10244 -> 12292 bytes .../HWFrom1-28-16(Merge Sort).xcscmblueprint | 30 +++++++++++ .../Contents.swift | 50 ++++++++++++++++-- ...-16(QuickSort+Lists+Queues).xcscmblueprint | 30 +++++++++++ 4 files changed, 105 insertions(+), 5 deletions(-) create mode 100644 HWFrom1-28-16(Merge Sort).playground/playground.xcworkspace/xcshareddata/HWFrom1-28-16(Merge Sort).xcscmblueprint create mode 100644 HWFrom1-30-16(QuickSort+Lists+Queues).playground/playground.xcworkspace/xcshareddata/HWFrom1-30-16(QuickSort+Lists+Queues).xcscmblueprint diff --git a/.DS_Store b/.DS_Store index 6b9415d09a954987ff14637bad710f64ef9a880b..05c599b71a1d353431959f61d5b1f84b136ae80d 100644 GIT binary patch literal 12292 zcmeHN%}*0S6n~2t@gszgc=EtTAr=};3qA(Ibh8M-%8{${1p_D&?FW(X&=NgY+RxA| zxFqR5I=4$C?6`!q@Ss7htprngjLsZEp?mdjQ?SGIECi0;rAQ(ii75iY!VE?js{ zxEGGMC^H?Ja%jt@c!FfuO+oFZhO@;m?B*ypoq8#UwrpxQCxaz}k0aS|b|?l*N4d$> z$w=8$Uo`?6fo=qDp(v!ice#|z=B-NA7Bc=dJkAv>oh~#Rd7`7kiBaYsQlBeUAtKJz zT^S7q#pD>rq7);Up}BvLZW!x8q7&T^3$BQv1mLe~FxCM7z&vH$ZT(=~1?JfU+wmUn zKJUhlRuMm{Ax>1p`(zP6s!`)~5hUZ-gK=nbRIJB8Ku&19CCrb$oiOGh@^)uT=)8OA z^>LS8XDQ+8^%-Je21&E(m}7q+-eYYOCnxrqM;0rWSj9}NM>yGF zOT3N$yR?duD(-yFKveAv+y)8}Ns`b$-mvXVWRf~-NwktwJ*C7Dx&oWBj1?k7Yp^pJ z&m6@WlQKuI;zw<#@z44pIr8Uc;KStD>00dN>2*o5%#NJQH=lu!z&K=wJ1{`-_zm~zbf&G@{XRSPP#EE?*a#X80ItDqR zy@O;24|czUbEv#s%NIIt)z+~eJjOnWtk)#(w-Sz5vH-o7=*j7{DJ-3$&4Aoh9mWs9 zJs?L}bFV%M#RccsrLTZ}RJGI+eVp#0r8#%@tzfp5pr<_izBFhZcQy7Vi?qq!V*_5K zkN2p~M~;8U^D#ons&|BV0le_TmlGy)od{}TaYFr7^=;N1+L_Y-IBCh`_?JE1OD$AypLLHQ^il#k*; u6H?ujxJOybrno~o^N#?eFNLL5{tPU#w*TyF1oSwx{r5zK|LUXp+y6g1wsJH8 delta 232 zcmZokXbF&DU|?W$DortDU{C-uIe-{M3-C-V6q~3gIoUvmMH0wo5C>vLpg03VK0_{p zA%iZ10fXgcLB?-vlNA`(Zf56T;b0V>?4aN?`JN=-W+uf5Mlj=;QW%7>L}d|FM9q|O z;zUodY>Ge#Sa7nM(Av$SjGsVe%@Sk=*#~q6H;`}zIR$9Vcjn3bI) than pivot point + +//4) Write a function to generate an array of random numbers bounded between 1..<10,000 of size 10,000. + +func generateNumbers() -> [Int] { +var int = 1 + Int(arc4random_uniform(UInt32(10000))) +// for int in Int { + // not sure how to run the for loop to generate random numbers each time. + return [] + } // why can't I return an array of ints even though I have it return an array of ints? + + +// https://www.quora.com/What-is-the-difference-between-quicksort-and-mergesort +//5) The difference between merge and quick sorts are the elements in the array are not completely sorted, just sorted based on the pivot point. Quicksort is generally much faster than merge sort because of the constant multiplier. Quicksort cannot be done iteratively -//3) +//6) -//4) +func isBalanced(paren: [String]) -> Bool { +return true + // think of it like a stack so that whatever enters last needs to be the closer. + // so whenever a symbol enters a stack, check if the first one entered is the closing brace/parenthesis, etc. (is this the right logic?!) -//5) +} -//6) \ No newline at end of file diff --git a/HWFrom1-30-16(QuickSort+Lists+Queues).playground/playground.xcworkspace/xcshareddata/HWFrom1-30-16(QuickSort+Lists+Queues).xcscmblueprint b/HWFrom1-30-16(QuickSort+Lists+Queues).playground/playground.xcworkspace/xcshareddata/HWFrom1-30-16(QuickSort+Lists+Queues).xcscmblueprint new file mode 100644 index 0000000..2302e77 --- /dev/null +++ b/HWFrom1-30-16(QuickSort+Lists+Queues).playground/playground.xcworkspace/xcshareddata/HWFrom1-30-16(QuickSort+Lists+Queues).xcscmblueprint @@ -0,0 +1,30 @@ +{ + "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5", + "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { + + }, + "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : 0, + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : 0 + }, + "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "4BE0D784-A81C-4D13-A4EF-7B14D546D3DB", + "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : "..", + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : "unit-4-assignments\/" + }, + "DVTSourceControlWorkspaceBlueprintNameKey" : "HWFrom1-30-16(QuickSort+Lists+Queues)", + "DVTSourceControlWorkspaceBlueprintVersion" : 204, + "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "HWFrom1-30-16(QuickSort+Lists+Queues).playground", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-2-final-project-.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "023C046D7BC226924BBAD83456E847BF59264631" + }, + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-4-assignments.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" + } + ] +} \ No newline at end of file From f533e0f5c94581f3675f5c1e8817f7f4ef9187da Mon Sep 17 00:00:00 2001 From: charles Date: Thu, 4 Feb 2016 21:25:58 -0500 Subject: [PATCH 10/10] hw --- .DS_Store | Bin 12292 -> 12292 bytes .../Contents.swift | 50 +++++++++++++++++- ...m1-31-16(Sets and HashMaps).xcscmblueprint | 30 +++++++++++ 3 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 HWFrom1-31-16(Sets and HashMaps).playground/playground.xcworkspace/xcshareddata/HWFrom1-31-16(Sets and HashMaps).xcscmblueprint diff --git a/.DS_Store b/.DS_Store index 05c599b71a1d353431959f61d5b1f84b136ae80d..7671a45418b1c0f183a785dd969412b1660b987a 100644 GIT binary patch delta 144 zcmZokXi1ph&uFqSU^hRb+{6i9lkZ9LZB7wzXJIs${6I7T#AP$EU|?W?a5o5WbKXcz z1@d7cHX`UE2ZV$-uNHA+WzzaE`JH4c^UcNoCm)c?Vl3FKEnUUDnOorlJEtB)0YeT$ NB17e77LD&nTmU-sEm!~m delta 108 zcmZokXi1ph&uF+YU^hRb^u!5Xlh;Y}ZB7wzXW3jW=E%y#q%?V-bSmqO(02?BKvv9T wI}uJeFKY4uAwEWj%@bv+m^UjhrZH~jR`|fqnaWVgkjhZZpt+ev<2w=;0I{bbivR!s diff --git a/HWFrom1-31-16(Sets and HashMaps).playground/Contents.swift b/HWFrom1-31-16(Sets and HashMaps).playground/Contents.swift index c5841b0..bca17c4 100644 --- a/HWFrom1-31-16(Sets and HashMaps).playground/Contents.swift +++ b/HWFrom1-31-16(Sets and HashMaps).playground/Contents.swift @@ -1,3 +1,5 @@ +import Foundation + //: https://docs.google.com/document/d/1T7tYRqpDPWoxarfmXqfRCHB-YqvA8-Qx_mEyy5smtfc @@ -14,7 +16,53 @@ //2) +let blackList: Set = ["crapple", "fandroid", "m$"] + + +func moderate(message : String) -> Bool { + let words = (message as NSString).componentsSeparatedByString(" ") + + for word in words { + if blackList.contains(word.lowercaseString) { + return false + } + } + return true +} + +moderate("I would never use a crApple product!") +moderate("something else") +//3) -//3) \ No newline at end of file +protocol PhoneBookProtocol { + mutating func addPerson(name: String, phoneNumber: String) + mutating func removePerson(name: String) + mutating func importFrom(oldPhonebook: [(String, String)]) + func findPerson(name: String) -> String? // Return phone # +} +classPhoneBook: PhoneBookProtocol { + var storage: [String : String] = [:] // @{} + //var storage = Dictionary() + func addPerson(name: String, phoneNumber: String) { + storage[name] = phoneNumber} + func removePerson(name: String) { + storage.removeValueForKey(name) } + func findPerson(name: String) -> String? { + return storage[name] + func importFrom(oldPhonebook: [(String, String)]) { + for entry in oldPhonebook { + addPerson(entry.0, phoneNumber: entry.1) + } + } + } + + + ​ + let oldData = [("Caleb", "501-555-1234"), ("Mike", "212-555-4321"), ("Jenny", "345-867-5309")] + + let phoneBook = PhoneBook() + phoneBook.importFrom(oldData) + + phoneBook.findPerson("Jenny") \ No newline at end of file diff --git a/HWFrom1-31-16(Sets and HashMaps).playground/playground.xcworkspace/xcshareddata/HWFrom1-31-16(Sets and HashMaps).xcscmblueprint b/HWFrom1-31-16(Sets and HashMaps).playground/playground.xcworkspace/xcshareddata/HWFrom1-31-16(Sets and HashMaps).xcscmblueprint new file mode 100644 index 0000000..2a25871 --- /dev/null +++ b/HWFrom1-31-16(Sets and HashMaps).playground/playground.xcworkspace/xcshareddata/HWFrom1-31-16(Sets and HashMaps).xcscmblueprint @@ -0,0 +1,30 @@ +{ + "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5", + "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { + + }, + "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : 0, + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : 0 + }, + "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "59C43B98-6376-4653-B9E9-410807607912", + "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { + "023C046D7BC226924BBAD83456E847BF59264631" : "..", + "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" : "unit-4-assignments\/" + }, + "DVTSourceControlWorkspaceBlueprintNameKey" : "HWFrom1-31-16(Sets and HashMaps)", + "DVTSourceControlWorkspaceBlueprintVersion" : 204, + "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "HWFrom1-31-16(Sets and HashMaps).playground", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-2-final-project-.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "023C046D7BC226924BBAD83456E847BF59264631" + }, + { + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/charleshkang\/unit-4-assignments.git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", + "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "BC00B0370BF6CE50CF8D6B743E30CE9D4B9706A5" + } + ] +} \ No newline at end of file