技術文章

Product of Array Except Self

[LeetCode] 0238. Product of Array Except Self

Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i].

The product of any prefix or suffix of nums is guaranteed to fit in a 32-bit integer.

You must write an algorithm that runs in O(n) time and without using the division operation.

[LeetCode] 0238. Product of Array Except Self Read More »

Leetcode, 技術文章

[LeetCode] 0123. Best Time to Buy and Sell Stock III

[LeetCode] 0123. Best Time to Buy and Sell Stock III.
Hard
You are given an array prices where prices[i] is the price of a given stock on the ith day.

Find the maximum profit you can achieve. You may complete at most two transactions.

Note: You may not engage in multiple transactions simultaneously (i.e., you must sell the stock before you buy again).

[LeetCode] 0123. Best Time to Buy and Sell Stock III Read More »

Leetcode, 技術文章

[LeetCode] 0122. Best Time to Buy and Sell Stock II

[LeetCode] 0122. Best Time to Buy and Sell Stock II.
You are given an integer array prices where prices[i] is the price of a given stock on the ith day.

On each day, you may decide to buy and/or sell the stock. You can only hold at most one share of the stock at any time. However, you can buy it then immediately sell it on the same day.

Find and return the maximum profit you can achieve.

[LeetCode] 0122. Best Time to Buy and Sell Stock II Read More »

Leetcode, 技術文章

[LeetCode] 0121. Best Time to Buy and Sell Stock

[LeetCode] 0121. Best Time to Buy and Sell Stock
Easy
You are given an array prices where prices[i] is the price of a given stock on the ith day.

You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock.

Return the maximum profit you can achieve from this transaction. If you cannot achieve any profit, return 0.

[LeetCode] 0121. Best Time to Buy and Sell Stock Read More »

Leetcode, 技術文章
為什麼要學寫程式?

為什麼要學寫程式?職涯發展、解決問題能力等 3 大優勢一次看!

在這個數位化時代,程式設計已經成為現代人需要掌握的基本技能之一。不僅限於在科技業,越來越多的產業開始期待員工都能具備基本的程式設計素養。
程式設計無論在提升職場競爭力、解決複雜問題,還是開發創新的應用,都是非常強的助力,不只是對公司的產品開發,對個人生涯發展也是如此。

為什麼要學寫程式?職涯發展、解決問題能力等 3 大優勢一次看! Read More »

技術文章, 軟體工程師, ,
perplexity5

Perplexity AI :估值超過10億美元,黃仁勳也愛用的 AI 工具!自詡為「答案」引擎,如何用 AI 挑戰 Google Search 的地位?

做 AI 題目的新創如雨後春筍,除了前幾篇介紹的 LLM Cluade 母公司 Anthropic, 做數據處理的 Scale AI, 做 MarTech 的台灣獨角獸 Appier, 沒想到 AI 也可以結合搜尋引擎,快速突破全球千萬使用者,逐漸威脅到 Google 的領導地位!
Perplexity 在這個艱難的賽道中脫穎而出,目前已籌集高達 7400 萬美元的融資,成為輝達(Nvidia)、Amazon 創辦人Jeff Bezos 等科技業代表性公司和人物的投資對象! Perplexity AI 到底是怎樣的公司?與 Google 的差別是什麼?會怎樣顛覆搜尋的未來?

Perplexity AI :估值超過10億美元,黃仁勳也愛用的 AI 工具!自詡為「答案」引擎,如何用 AI 挑戰 Google Search 的地位? Read More »

技術文章, 科技新創專欄, ,
system-design-系統設計12-CDN-基礎概念與設計-how-cdn-work-hogantech

CDN 基礎概念與設計 – 系統設計 12

CDN 是一組根據地理位置去做置放的代理伺服器(Proxy Server)。其中,代理伺服器是客戶端和伺服器之間的中間伺服器,代理伺服器也會放置在網路邊緣(Network Edge)。也因為網路邊緣靠近最終用戶,代理伺服器的放置有助於透過減少延遲和節省頻寬來快速將對應的資料傳送給使用者。CDN 除了作為簡單的代理伺服器之外還,也可以透過一些設定以及操作讓他們變得更有效率。

CDN 基礎概念與設計 – 系統設計 12 Read More »

技術文章, 系統設計