Leetcode 125: Valid Palindrome
The original question can be found here. The question is asking for a given string, determine if it’s palindromic. Only […]
The original question can be found here. The question is asking for a given string, determine if it’s palindromic. Only […]
The original question can be found here. There’re multiple solutions to this question, and we’ll start with the brute force
Here are some interview skills and coding styles that on top of my head. Interview Skills Try to avoid “I
The original question can be found here. The question is asking to return the median number of 2 sorted arrays.
The original question can be found here. The question is aksing for the intersection of two arrays, and element in
The original question can be found here. It’s asking us to merge array nums2 into array nums1. The most straightforward
The orignal question can be found here. The question is asking the number of subarrays which the sum value equals
The original question can be found here. The question is aksing for the largest sum of the subarray. We can
The original question can be found here. The question is asking to find the maximum number inside each sliding window(subarray).
Prefix sum is a very useful technique which can be used for some subarray questions. Let’s look at how it