RC Week 2: Remote catch up and app progress
Today I went to the remote recurser catch up and it was really nice to hear how remote folks are doing.
I'm trying to start my day with a small coding problem but today's was tough for me and was a carry over from the last two days. I finally got a working solution but I do not love it. The problem was essentially evaluating a matrix for numbers that are the highest in their row but lowest in the column. Here's my solution: https://github.com/shacon/Exercism_Solutions/blob/main/ruby/saddle-points/saddle_points.rb, not cleaned up at all. This isn't exactly a leetcode-style question because you don't need to know a specific algorithm to complete it but I have the feeling that it would take practice to do this kind of problem more fluidly. And I definitely feel pretty out of practice.
I continued working on my ruby-version-of-leetle app and got a few things done today:
- added display_date to the Prompt model to store when prompts should be displayed
- added a scope variable to grab the current day's prompt
- displayed the day's prompt to the user (only have one little prompt generated by seed data atm)
- changed the seed data script to set the display_date for my one prompt to today
Next big step will be running the user's code against the tests for that specific prompt. Guessing I'll be making use of eval() to evaluate the string input as code. I'm definitely not handling a bunch of edge cases at this point but making progress.