Friedrich Ewald My Personal Website

Posts


  • Traveling with a Mac Book

    I recently returned from a trip to Europe (GMT+2) to the West Coast (PT). Upon returning I noticed that none of my Two-factor (MFA) codes were accepted by either Cloudflare or AWS. I had not restarted my MacBook since leaving Europe. It seems to me that the internal clock which is used to calculate the current MFA code is not reset when switching time zones, thus producing invalid codes. A restart of the computer fixed this issue. Update: I also noticed that this happens sometimes when the laptop is closed (asleep) for some period of time. I found this little command that synchronizes the time.

    sudo sntp -sS time.apple.com

  • Leetcode: Binary Search Matrix

    Continue reading

  • Leetcode: Word Search

    Given a matrix of characters, return True if the word is contained within the matrix by visiting horizontally and vertically adjacent fields.

    Continue reading

  • Leetcode: Combinations

    Given two integers n and k, create all possible solutions with all numbers from [1,n] of k length.

    Continue reading

  • Leetcode: Letter Combinations of a Phone Number

    Continue reading

Previous Page: 1 of 32