Blog

LeetCode 11: Container With Most Water

You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]).

Find two lines that together with the x-axis form a container, such that the container contains the most water.

Return the maximum amount of water a container can store.

Notice that you may not slant the container.

Read More »

LeetCode 941: Valid Mountain Array

Given an integer array nums, move all 0’s to the end of it while maintaining the relative order of the non-zero elements.

Note that you must do this in-place without making a copy of the array.

Follow up: Could you minimize the total number of operations done?

Read More »

LeetCode 283: Move Zeroes

Given an integer array nums, move all 0’s to the end of it while maintaining the relative order of the non-zero elements.

Note that you must do this in-place without making a copy of the array.

Follow up: Could you minimize the total number of operations done?

Read More »

7 個最好用的 ChatGPT 插件 (2023)

在 GPT-4 推出後,OpenAI 推出了 ChatGPT 的插件功能,並允許使用者在 ChatGPT 上結合第三方插件一起使用。這大大賦予了 ChatGPT 更多的可能性,而不僅僅只限於 AI 聊天機器人的範疇。這篇文章將列舉幾個我在試用後覺得非常值得推薦的插件。

Read More »

Elementor WordPress 教學 (2023)

選擇一個好的頁面建構器是近幾年在建立一個 WordPress 網站時非常重要的工具。在上一篇的文章中,我們有提到了在安裝主題時可以選擇適合的頁面建構器來建立頁面,而其中我們選擇了 Elementor 作為編輯選項。因此,我將會在這篇文章中更詳細介紹 Elementor 這款頁面建構器以及其主要重點功能。

Read More »

WordPress 網站初始化及安裝主題 (2023)

在這篇文章中,我會詳述如何初始化你的 WordPress 網站以及套用正確的模版來讓你的網站進行個人化調整,如色彩和字型,以使網站更貼合主題。另外也會介紹如何搭配使用 Astra 及 Starter Templates 來讓你的網站更有彈性及專業。

Read More »