Consistency is key was in my last tweet and I took a 16 day hiatus ๐ญ but I did three medium leetcode problems today. Back at it ๐ค Day 22 #100DaysOfCode
Day 20 of #100DaysOfCode Another leetcode problem and another lesson on what to look for when finding optimizations. I preprocessed the data for an ideal run time, but realized coming up with a better math equation can avoid unnecessary stored data. ๐ฅฒ
@thepokerdev It was called degree of an array. https://t.co/gZZsgUcHSn fairly straightforward but the biggest take away was knowing to use a hash map to avoid a runtime of n^2. Thanks for asking! ๐
Well I came up with the right approach but could not figure out the correct data structure to achieve the ideal run time for this leetcode problem :( I learned about monotonic stacks today though. Pretty useful! Day 19 #100DaysOfCode
Day 15 of #100DaysOfCode and learned a lot about detecting cycles with a hash set and easy way to go digit by digit using modulo operator. Good day ๐