berkeycolortran.wordpress.com
berkeycolortran | berkeycolortran
https://berkeycolortran.wordpress.com/author/berkeycolortran
A blog for CSC148H5S 2014. After rereading my last post, I was still frustrated by not having a constant-time solution. Well… after spending a couple more hours on it, I have one! From math import sqrt def ideal i(n: int): return round(sqrt( 2 * n) 1) - 1. Where x is the number of terms to add and y is the first element. That lets us start at 2: n = x(2 x)/2. Luckily, a “solve for x” website gave me the x = sqrt(2n 1). Equivalent.* Which we want to round. That said, we should remember that removing the n...
berkeycolortran.wordpress.com
March | 2014 | berkeycolortran
https://berkeycolortran.wordpress.com/2014/03
A blog for CSC148H5S 2014. Monthly Archives: March 2014. The part of assignment 2 part 2 that I had the biggest problem with was all regex permutations. Not because it’s hard to generate permutations and filter them through a working is regex. That’s easy we saw it in class with searching for anagrams. But we were discouraged from using a model like that. Why? Now and not mutually exclusively, that is, not with an elif but with an if I had to deal with bracket variations. Well, it’s actually a litt...
compscikitty.wordpress.com
Kitty | compscikitty
https://compscikitty.wordpress.com/author/caopeggy
The semester really flew by. It’s really become a habit to write these blog posts. I think they really have helped me reflect on my skills in this course and I hope I was able to help some of my readers too. After a term of slog-writing and slog-reading, just for the record, here are the top three slogs that caught my eye:. Http:/ ddc-csc148slog.blogspot.ca/. Spunky and intelligent, ddc’s blog will keep you entertained. Http:/ berkeycolortran.wordpress.com/. Http:/ csc148sharon.wordpress.com/. I hope you...
compscikitty.wordpress.com
Linked List Lab(s) | compscikitty
https://compscikitty.wordpress.com/2014/03/07/linked-list-labs
This week’s practical lab was exactly the same as last week’s. Because it was possibly the most difficult lab we have yet to complete. We have spent the past few weeks looking at Linked Lists. Which are another type of data structure. Similarly to many people, such as Hotfuzz. I feel “the theory behind linked lists is not complicated, however implementing them is”. But the lab wasn’t so simple; we had to use Linked List methods to implement another class. BUT HOW WAS THAT TO BE DONE? After a fruitless fi...
compscikitty.wordpress.com
The Final Week | compscikitty
https://compscikitty.wordpress.com/2014/04/04/the-final-week
The semester really flew by. It’s really become a habit to write these blog posts. I think they really have helped me reflect on my skills in this course and I hope I was able to help some of my readers too. After a term of slog-writing and slog-reading, just for the record, here are the top three slogs that caught my eye:. Http:/ ddc-csc148slog.blogspot.ca/. Spunky and intelligent, ddc’s blog will keep you entertained. Http:/ berkeycolortran.wordpress.com/. Http:/ csc148sharon.wordpress.com/. I hope you...
compscikitty.wordpress.com
Test 2 | compscikitty
https://compscikitty.wordpress.com/2014/03/28/test-2
I knew my is regex () from assignment 2 was not the most efficient. There were way too many cases. It was definitely the most difficult function for me to write. The code was over 60 lines! On test 2, one of the questions was to write is plex () for a plex object, which was an extremely simplified version of a regex. This should have been easier but because it was simplified, for me, it was harder to code! Lesson learned: assignments are versatile for a reason. Even with assignment 1, the four stool ...
compscikitty.wordpress.com
Exercise 3 | compscikitty
https://compscikitty.wordpress.com/2014/03/21/excercise-3
First off, I would like to mention that this semester is almost over! It feels we just began, but time sure flew by. A lot of my classmates have expressed this recently as well:. I can’t believe that in a month CSC148 will be over. This semester has gone by really quickly. Hey, so there is legit 3 more weeks of school left I think. I cannot believe it, my first year in university is almost over. It’s been nice to see my progress and the progress of my peers throughout the year! This is both good and bad.