After a 34-day drought, Iβm officially back in the grind β and it feels good to get the rhythm going again. πͺ
π§© DSA Problems [1 hr]
Problem: Find Resultant Array After Removing Anagrams (LeetCode 2273)
This was a nice warm-up to shake off the rust β not too complex, but a solid logic-based question.
π§ Idea
Iterate through the list, and only keep a word if its sorted characters differ from the previous oneβs sorted characters (meaning itβs not an anagram).
π» Code
class Solution(object):
def removeAnagrams(self, words):
ans = [words[0]]
for i in range(1, len(words)):
a, b = sorted(words[i]), sorted(ans[-1])
if a != b:
ans.append(words[i])
return ans
β‘ Takeaways
Used sorted strings to detect anagrams efficiently.
Perfect reminder that simplicity > cleverness β clean logic wins.
Great re-entry problem to rebuild problem-solving momentum.
π System Design β Roadmap.sh [1 hr]
π Topic: Availability in Numbers
Availability is all about how long a service stays up and running β usually expressed in number of 9s.
Level Uptime % Max Downtime Per Year
3 Nines 99.9 % 8 h 41 min 38 s
4 Nines 99.99 % 52 min 9.8 s
Even one extra β9β massively cuts downtime.
βοΈ Availability in Sequence vs Parallel
In Sequence
Availability drops because both components must work.
Total = A(Foo) Γ A(Bar)
Example: 99.9 % Γ 99.9 % = 99.8 %.
In Parallel
Availability rises since one component can cover for another.
Total = 1 β (1 β A(Foo)) Γ (1 β A(Bar))
Example: 99.9 % each β 99.9999 %.
You can experiment with numbers here β uptime.is calculator
.
π§© Reflection
Coming back after a break reminded me that availability applies to humans too: when one part of your routine goes down, redundancy (habits, structure, accountability) helps bring it back up. π
π¬ Final Thoughts
β
Day 9 done!
Itβs not about never falling off β itβs about coming back stronger.
Key takeaways:
Keep DSA problems light to rebuild momentum.
Revisit System Design numbers to solidify intuition.
Progress > Perfection β always.
π€ Letβs Connect
Have you ever taken a break and struggled to restart your learning streak?
Drop a π if youβve ever had to βreplicateβ your own discipline!
Top comments (0)