592. Fraction Addition and Subtraction - Day 22/31 Leetcode August Challenge

preview_player
Показать описание
Larry solves and analyzes this Leetcode problem as both an interviewer and an interviewee. This is a live recording of a real engineer solving a problem live - no cuts or edits!

#leetcode #coding #programming
Рекомендации по теме
Комментарии
Автор

Feel converting all `-` to `+-` is quite handy when splitting the fractions. For example, something like `[x for x in expression.replace("-", "+-").split("+")]`.

xinyangyuan
Автор

I ended up writing really messy repeating code and yoloed😆

ghmaxex
Автор

My solution beat 10% 😂 These parsing problems are no fun in my opinion

ryofdjb