Mostly Software

Mostly Software

    • About
    • Archive
  • Dec 28, 2019
    • Practice leetcode problems.
      • https://leetcode.com/problems/string-to-integer-atoi. Nothing specially really, just checking lot of corner cases.
      • https://leetcode.com/problems/palindrome-number. Very easy.
      • https://leetcode.com/problems/regular-expression-matching/. They need to be clearer than the wildcard will only be in the second position. I was about to program the true way to do it.
      • https://leetcode.com/problems/container-with-most-water. Nailed this one.
      • https://leetcode.com/problems/roman-to-integer/. Easy. Remember, while loops allow you to iterate in desynced fashion, which is common (rather than just `for ind, item in enumerate(array):`. A while loop allows you to jump around in the array, skip 2 items, control your own index for each step, etc. This occurs pretty frequently in logic problems.
      • https://leetcode.com/problems/integer-to-roman. More roman numerals!
    • Went back over the leadership principles, making examples and memorizing each.
    • Watched the second season of You. Loved how much they made fun of LA actors.
    • Remember python’s compound operators. You use += but you can did it with basically everything else, like *= or %= (modulo then define). They’re all the same as x = x * 5, with whatever operator and number you need.

© 2012 Brian Mahlstedt