Sloppy Tower Of Hanoi With Invariant

I got lost playing Towers of Hanoi with more than 3 discs—4 or 5 and gave up solving manually. But, a manual solution although sloppy is possible if the player maintains an invariant: The disc above is strictly smaller to the disc below for each tower. In this way, Hanoi... [Read More]

Google Oauth2 Using Postman

The higlighted fields need to be filledup for successful Postman setup. Img 1 Img 2 Callback URL: https://oauth.pstmn.io/v1/callback Auth URL: https://accounts.google.com/o/oauth2/v2/auth Access Token URL: https://oauth2.googleapis.com/token Client ID: This is OAuth2 client ID from Google Cloud Console Client Secret: OAuth2 client secret Scope: https://www.googleapis.com/auth/calendar (For Google Calendar. All Google Api scopes... [Read More]
Tags: OAuth2.0 Api

Useful Zsh Commands

Brew Installation https://osxdaily.com/2023/04/19/fix-brew-command-not-found-on-mac-with-zsh/ Adding brew to the path in MAC echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc Downloading Brew ``` /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” [Read More]
Tags: bash zsh

Longest Palindromic Substring

Finding the longest palindrome in the string RACECAR. A cell (i, j) corresponds to a substring S[i…j] . For example, cell (1, 5) corresponds to Substring RACEC. The table will be filled by filling each cell in a row starting from the bottom row and then moving to the next... [Read More]