Technical Article

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, Technical Article

[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 (ie, you must sell the stock before you buy again).

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

Leetcode, Technical Article

[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, Technical Article

[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, Technical Article
Why learn to program?

Why learn to program? Take a look at 3 major advantages including career development and problem-solving skills at once!

In this digital age, programming has become one of the basic skills that modern people need to master. Not only in the technology industry, more and more industries are beginning to expect employees to have basic programming literacy.
Whether it is improving workplace competitiveness, solving complex problems, or developing innovative applications, programming is a very powerful help, not only for the company's product development, but also for personal career development.

Why learn to program? Take a look at 3 major advantages including career development and problem-solving skills at once! Read More »

Technical Article, software engineer, ,
perplexity5

Perplexity AI: With a valuation of over US$1 billion, Huang Jen-Hsun also loves to use AI tools! Claiming to be an “answer” engine, how can you use AI to challenge Google Search’s status?

New startups working on AI topics have sprung up. In addition to Anthropic, the parent company of LLM Cluade, introduced in the previous articles, Scale AI for data processing, and Taiwanese unicorn Appier for MarTech. Unexpectedly, AI can also be combined with search engines to quickly break through thousands of companies around the world. Million users, gradually threatening Google's leadership position!
Perplexity has stood out in this difficult track and has raised up to US$74 million in financing. It has become an investment target of representative companies and figures in the technology industry such as Nvidia and Amazon founder Jeff Bezos! What kind of company is Perplexity AI? What's the difference with Google? How will it disrupt the future of search?

Perplexity AI: With a valuation of over US$1 billion, Huang Jen-Hsun also loves to use AI tools! Claiming to be an “answer” engine, how can you use AI to challenge Google Search’s status? Read More »

Technical Article, Technology Innovation Column, ,
system-design-System Design 12-CDN-Basic Concept and Design-how-cdn-work-hogantech

CDN Basic Concept and Design – System Design 12

CDN is a group of proxy servers (Proxy Server) placed based on geographical location. Among them, the proxy server is an intermediate server between the client and the server, and the proxy server will also be placed at the network edge (Network Edge). Also because the edge of the network is close to the end user, the placement of the proxy server helps to quickly transmit the corresponding data to the user by reducing delays and saving bandwidth. In addition to serving as simple proxy servers, CDNs can also make them more efficient through some settings and operations.

CDN Basic Concept and Design – System Design 12 Read More »

Technical Article, System Design