Question: SET is a card game where each card has 3 attributes, each of which can take on 3 different values(0,1,2). A "valid SET" is 3 cards such that each attribute is either (a) all the same or (b) all different.Example: card1 = {0,1,2} card2 = {0,0,1} card3 = {0,2,0} is a valid set.Write a… Continue reading BLOG | Comparing attributes for a set of cards
Month: May 2023
BLOG | Union N aligning rectangles’ area
This is a follow up for merging intervals. Instead of merging 1D items, consider the case when each interval comes with a height, and compute the total overlapping area. We would use a sweep line algorithm for this question. Maintain a horizontal projection for all rectangles. Use 1D union to compute the total union area.… Continue reading BLOG | Union N aligning rectangles’ area
BLOG | Feynman technique: the ultimate best way to learn computer science
If you learn as a student, you will always be a student. A better way to learn knowledge is to learn as a teacher. My journey as a CS student I had both my B.S and M.S degrees in engineering. I still remember how excited I was when I had my first programming course, and… Continue reading BLOG | Feynman technique: the ultimate best way to learn computer science



