May 22Here’s the LeetCode myth.You don’t need to do 1000+ questions to become a software engineer. Your interviewer didn’t do 1000+ questions before interviewing you. I didn’t do 1000+ questions to become a software engineer. Your interviewer did have criteria to look for. 1. Can you clearly communicate your thought process? 2. Did you clarify…Leetcode2 min read
Published in Geek Culture·May 17Leetcode Hard: Longest Valid Parentheses, O(N) Time, O(1) Space SolutionGiven a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.Leetcode2 min readLeetcode Hard: Longest Valid Parentheses, O(N) Time, O(1) Space Solution----
May 14234. Palindrome Linked ListGiven the head of a singly linked list, return true if it is a palindrome.Leetcode2 min read234. Palindrome Linked List----
May 10269. Alien DictionaryThere is a new alien language that uses the English alphabet. However, the order among the letters is unknown to you. You are given a list of strings words from the alien language's dictionary, where the strings in words are sorted lexicographically by the rules of this new language. Return…Leetcode2 min read
May 9How to merge the master branch into the feature branch?git checkout development git pull git checkout feature-branch git merge developmentGit1 min readHow to merge the master branch into the feature branch?git checkout developmentgit pullgit checkout feature-branchgit merge development----
Mar 14Leetcode 5. Longest Palindromic SubstringGiven a string s, return the longest palindromic substring in s.Leetcode1 min readLeetcode 5. Longest Palindromic Substring----
Feb 4Note Resolving Merge Conflicts on GitWhen the master branch is ahead of the feature branch, we need to resolve some conflicts when we merge the feature branch to the master branch. git pull origin X X is your main/master branch, ie. `development` or master git pull origin development2 min readNote Resolving Merge Conflicts on GitWhen the master branch is ahead of the feature branch, we need to resolve some conflicts when we merge the feature branch to the master branch.git pull origin XX is your main/master branch, ie. `development` or mastergit pull origin development----
Jan 20Steps on Squashing Commits and Git RebaseNotes for myself based on my recent experience, hope it can provide some help to others Step1. push up your last commit before you run the rebase: git add . git commit -m "feature/CORE Notes For Commit"// this is the 6th commit git push --set-upstream origin feature/CORE-418-update-admin-page-style Now the commit…Git3 min read
Published in Geek Culture·Jan 20Git stuff I learned in the past 3 months and saved me from a lot of Git troublesWanna come learn some tips on Git? Instead of “git add .” …Git2 min read
Nov 8, 2021Convert Binary Search Tree to Sorted Doubly Linked ListConvert a Binary Search Tree to a sorted Circular Doubly-Linked List in place. You can think of the left and right pointers as synonymous to the predecessor and successor pointers in a doubly-linked list. …Leetcode Medium2 min read