Yujun's Blog
-
-
-
-
LeetCode 0001. Two Sum - Hash Map Solution | Go, Python, C++
Given an array of integers nums
and an integer target
, return indices of the two numbers such that they add up to target
.
[✅ Beats 💯] LeetCode 1052. Grumpy Bookstore Owner - Easy Solution | Go
There is a bookstore owner that has a store open for n
minutes. Every minute, some number of customers enter the store. You are given an integer array customers
of length n
where customers[i]
is the number of the customer that enters the store at the start of the ith
minute and all those customers leave after the end of that minute.