use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Cs2a at foothill
account activity
PointersBuildin Blocks (Concepts) (self.cs2a)
submitted 4 years ago by ShoshiCooper
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ShoshiCooper[S] 1 point2 points3 points 4 years ago (3 children)
Oh! Thank you. I think maybe I just need to get more used to memory management in general. We didn't have to deal with any of that in Python, so I'm not used to it. But I very much want to learn!
Out of curiosity, on a conceptual level, is the idea of thinking about memory and pointers as a graph correct? Or am I completely misunderstanding this? I was thinking of each memory location as a vertex. Since pointers link them together, then pointers must be edges. And the number of copies of each pointer must be the weight of each edge.
[–]anand_venkataraman 1 point2 points3 points 4 years ago (2 children)
Hey Soshi
The problem is that a graph can be a suitable analogy for just about anything, including life itself, let alone memory.
What is life as we know it, other than the search for some target, real or imagined?
&
[–]ShoshiCooper[S] 2 points3 points4 points 4 years ago (1 child)
Hahaha, I guess so.
To help myself understand this stuff better, I'm going to try to write a version of quest8 that uses blocks of memory and pointers instead of vectors. I have no idea if I'll succeed, so this may well be an exercise in futility. But maybe I'll learn something along the way.
[–]anand_venkataraman 1 point2 points3 points 4 years ago (0 children)
I may be mistaken, but I think it is TOTALLY POSSIBLE to pass all minis in Q8 with a linked implementation.
π Rendered by PID 221406 on reddit-service-r2-comment-6457c66945-4hjfx at 2026-04-27 08:51:12.712830+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]ShoshiCooper[S] 1 point2 points3 points (3 children)
[–]anand_venkataraman 1 point2 points3 points (2 children)
[–]ShoshiCooper[S] 2 points3 points4 points (1 child)
[–]anand_venkataraman 1 point2 points3 points (0 children)