Story behind Cric-Code
After the pandemic, I have been working from the office since Aug 2021. Unfortunately, some of my colleagues love to judge if I browse something else apart from my work.
To protect my love for ongoing T20 cricket world cup, I built Cric-Code, which lets me browse Cricbuzz as a VS code editor. It makes me look like I am doing actual work!
Check it out - https://cric-code.pankajtanwar.in/
P.S. - Please try it out on Desktop, And allow me some time to work on the responsive-ness.
Majority of the time I spent building Cric-Code this weekend. Don't forget to share if you have also built something cool.
Not to mention, my coding diary is completely on track and I have achieved day-37 so far. Going forward, I will be more systematic like 4 easy, 2 medium, 1 hard problem each week from a particular topic. Wish me luck 😛
I wrote a StackOverflow answer on Should I store JWT tokens in IndexedDB?
I was watching a random YouTube video, where one was asked about his income. One guy said, "I earn enough and half." I personally loved this line. So thought of sharing this!
Articles I've enjoyed. 📝
Interview Question of the week. 📝
P.S. - This problem was asked by Twitter.
You run an e-commerce website and want to record the last N order ids in a log. Implement a data structure to accomplish this, with the following API:
record(order_id): adds the order_id to the log
get_last(i): gets the ith last element from the log. i is guaranteed to be smaller than or equal to N.
You should be as efficient with time and space as possible.
Send me your solution or may be share it publicly and tag me
Quote of the week
Because of your smile, you make life more beautiful.
That's all for now friends! Have a wonderful weekend. Thanks, y'all – I love this community we have.
See you next Monday!