3 ms·
On the other hand, the current interviewing trend generates a steady supply of nifty, bite-sized problems to solve for fun. I keep a "practice" repo on Github,
by tmoertel 7y ago
On the other hand, the current interviewing trend generates a steady supply of nifty, bite-sized problems to solve for fun.
I keep a "practice" repo on Github, where I put my solutions. Often, for an extra challenge, I'll prove the solutions correct or try to write clear explanations of how to solve the problems from scratch. (Proving something helps me to see the hidden structure upon which my intuition rests. Explaining something helps me to lock it in my head.)
Over the years, I have learned a lot from this practice and have built up a repo that serves to keep my memory fresh. Here are some fun examples:
https://github.com/tmoertel/practice/blob/master/dailycodingproblem_com/find_non_triplicate_int.py https://github.com/tmoertel/practice/blob/master/dailycoding...
https://github.com/tmoertel/practice/blob/master/dailycodingproblem_com/first_missing_positive_integer.py https://github.com/tmoertel/practice/blob/master/dailycoding...
https://github.com/tmoertel/practice/blob/master/water-holding-capacity/water_holding_capacity.py https://github.com/tmoertel/practice/blob/master/water-holdi...
So, in at least one respect, I like the obsession with interview problems :)
- kadoban 7y agoNice. That first one is a personal favorite. Do you do "competitive programming"? You might like it. There's contests of various flavors out there to get a bunch of problems from. Random recommendation: "Looking for a Challenge", a _beautiful_ in every way book of problems. Seriously check it out. Can almost guarantee you'll love it judging from those problems you linked. Google Foobar is fun if you can get your way in. The codejam problems are nice (skip kickstarter mostly). codechef.com and codeforces.com have generally good problems (and fun contests if you're into that aspect).
- tmoertel 7y agoThanks for the great book recommendation! I just ordered a copy from a bookstore in Poland. I am eagerly awaiting its arrival. I don't really do competitive programming, but I enjoy the problems. Thanks for recommending some great new sources to check out!