Tag: code
-
Memorise Assignment 1
A small milestone achieved – I’ve completed the first assignment from the CS193p lecture series – some minor changes to the app being built in the lectures. There was a couple of things I was unhappy with: The text under the SF Symbols you can see in the preview above not being vertically aligned. Having…
-
Checkpoint 6
-
Checkpoint 5
-
Learning Retention
In order to have something to put up on GitHub (as part of working all that out) I went back to re-write the Checkpoint 2 code that I’d written, but not saved, three or four days ago. The task was to count the unique elements in an array. The teaching had been about the complex…
-
Checkpoint 4 optimisation
The Checkpoint 4 task was to find an integer square root of numbers up to 10000. My first pass solution was: Although not coded for speed, there are a couple of subtle optimisations here; the first is that it gives up once it gets to the number instead of going up to the end (it…
-
Checkpoint 4
-
Checkpoint 3