Recent Posts

Regex review

less than 1 minute read

I was doing a problem today that required me to extract the number from a URL in javascript. After some research, it seemed Regex was the best way to accompl...

Leetcode 278. First Bad Version

2 minute read

You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. S...

Leetcode 624. Maximum Distance in Arrays

1 minute read

You are given m arrays, where each array is sorted in ascending order. You can pick up two integers from two different arrays (each array picks one) and cal...

Leetcode 1133. Largest Unique Number

1 minute read

Given an array of integers nums, return the largest integer that only occurs once. If no integer occurs once, return -1. Solving this problem actually requir...