LeetCode - Optimal Account BalancingYou are given an array of transactions transactions where transactions[i] = [fromi, toi, amounti] indicates that the person with ID = fromi…Aug 14, 2021Aug 14, 2021
LeetCode - Sentence Screen FittingGiven a rows x cols screen and a sentence represented as a list of strings, return the number of times the given sentence can be fitted on…Aug 13, 2021Aug 13, 2021
Binary Search - LeetCode - Find Peak ElementA peak element is an element that is strictly greater than its neighbors.Jan 6, 2021Jan 6, 2021
Binary Search - LeetCode - Find First and Last Position of Element in Sorted ArrayGiven an array of integers nums sorted in ascending order, find the starting and ending position of a given target value.Jan 5, 2021Jan 5, 2021
LeetCode - Min Cost to Connect All PointsYou are given an array points representing integer coordinates of some points on a 2D-plane, where points[i] = [xi, yi].Oct 4, 2020Oct 4, 2020
Configure Flask + uWSGI + NGINX on MacOSPrerequisites: Install Python, Flask, uWSGI, NGINX on MacOS by following the official documentation respectively.Mar 5, 2020Mar 5, 2020
LeetCode - Count Number of Nice SubarraysGiven an array of integers nums and an integer k. A subarray is called nice if there are k odd numbers on it.Nov 6, 2019Nov 6, 2019
LeetCode - Design Log Storage SystemYou are given several logs that each log contains a unique id and timestamp. Timestamp is a string that has the following format…Oct 29, 2019Oct 29, 2019
LeetCode - Friend CirclesThere are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A…Oct 26, 2019Oct 26, 2019