the-other-thanos-A4#54
Conversation
|
✅ Your code works and it produced the output quickly for all files I tested it with.
💡 You can make the filename optional by using the 🤩 I liked that you took special care to handle UTF-8 encoding. This is something I missed in my solution and it caused problems for the reviewer on Windows. 🤔 FYI: I noticed that the ⚙️ It's a good idea to ensure that there always exists an end state ( 👍 Overall I really appreciate the simplicity of your solution, especially the Good job keep it up! |
|
Thanks, for the review. I totally missed the stdin part and updated the function now. I did not do it very carefully but I hope it works most of the times xD. The contexts variable was actually a relic of me wanting to see what I am building as a list, I commented it out now. |
|
You're absolutely right, it will probably terminate in practice, and it reliably did during my testing. It's just an "edge case" to consider :) |
ready for review