Jhom's Blog
LeetCode 0001. Two Sum - Hash Map Solution | Go, Python, C++
Given an array of integers
nums
and an integertarget
, return indices of the two numbers such that they add up totarget
.[✅ 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 arraycustomers
of lengthn
wherecustomers[i]
is the number of the customer that enters the store at the start of theith
minute and all those customers leave after the end of that minute.AWS: 如何在 AWS EC2 Amazon Linux 2 上安裝 Docker
在我們需要做 DevOps 時,我們常常會需要用到 Containerization 技術,而 Docker 是目前最為廣泛使用的 Containerization 技術之一。同時我們也可能會用到雲端的算力來幫助我們完成這些工作,因此我們今天將會介紹如何在 Amazon Linux 2 上安裝 Docker。
How to Make Your React TypeScript Project More Elegant with
map()
With React TypeScript and
map()
, you can create a more elegant personal blog. In this article, I share how to use themap()
method to handle dynamic rendering of blog post lists and show the thought process of implementing the modification suggestions provided by ChatGPT.如何在 Mac 安裝 Node.js & NPM
新年剛好把 MacOS 重灌,讓這台老 macbook pro 2020 重獲新生,也藉此機會重新建置開發環境。因此我們將示範如何在 Mac 安裝 Node.js 以及 NPM,其實直接從官網安裝 Node.js 時就會同時安裝 NPM,因此我將以 Mac 作為示範如何在成功安裝 Node.js,並且展示成功結果!