歡迎來到軟體技術部落格,這裡是 React、JavaScript 及技術技能的知識文章頁面。無論是在尋找關於monorepo 的技術、zustand 的狀態管理技巧,還是希望加強對前端開發的理解,這裡都有豐富的資源。每篇文章都精心撰寫,旨在提供清晰、易於理解的內容,幫助大家快速找到所需資訊。從基本概念到進階技巧,無論是初學或是進階,這裡都有適合大家的內容。如果對於圖文式內容有興趣,也可以參考我們 Instagram。
[Leetcode] 0104. Maximum Depth of Binary Tree
Given the root of a binary tree, return its maximum depth.
A binary tree’s maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
DeepSeek vs. OpenAI vs. Anthropic:誰的 AI 訓練效率更高?
人工智慧(AI)正在迅速改變我們的世界,無論是聊天機器人、語音助手,還是自動駕駛車輛,都依賴於強大的 AI 訓練和推理技術。但並不是所有 AI 模型的訓練方式都相同,一些公司選擇使用最先進的硬體,而另一些則嘗試用更少的資源達到相近的效果。
DeepSeek、OpenAI 和 Anthropic 是 AI 領域的三大競爭者,每家公司的訓練策略各有不同。DeepSeek 選擇使用較舊但成本較低的 A100 GPU,OpenAI 則倚賴最新的 NVIDIA H100,而 Anthropic 依靠 Google TPU 來優化 AI 訓練。本篇文章將深入探討這三家公司在 AI 訓練與推理上的策略,並分析它們對 AI 產業的影響,一起看下去吧!
單日股價暴跌?!NVIDIA 如何迎戰 DeepSeek的 AI 威脅?
DeepSeek 是誰?
DeepSeek 是一家來自中國的新創公司,近期以極低的成本開發出與 OpenAI GPT-4 競爭的 AI 模型。DeepSeek 的成功主要歸功於其創新的 AI 訓練方法,透過較舊的 NVIDIA A100 GPU 和低成本晶片組合,突破了高昂的 AI 訓練成本。
NVIDIA 的角色
NVIDIA 是全球 AI 硬體市場的領導者,高端 GPU 被廣泛應用於 AI 訓練與推理。過去 NVIDIA 幾乎是所有大型 AI 項目的核心供應商,企業必須依賴他們昂貴的 GPU 來訓練 AI 模型。
DeepSeek 與 NVIDIA 的關係
DeepSeek 目前仍然依賴 NVIDIA 的硬體來運行 AI 模型,但 DeepSeek 證明了 AI 訓練並不一定要使用 NVIDIA 最新的 H100 或 Blackwell 架構 GPU,這也讓市場開始重新思考 NVIDIA 高端硬體的必要性。
DeepSeek:AI 新勢力如何顛覆產業格局
近年來,人工智慧(AI)領域的競爭越來越激烈,各國科技公司紛紛投入資源,試圖搶占市場先機。在這場 AI 競賽中,DeepSeek(深度求索)憑藉低成本、高效率的技術方案迅速崛起,成為市場關注的焦點。相較於 OpenAI、Anthropic 等美國科技公司,DeepSeek 不僅展現出強大的技術創新能力,還顛覆了人們對於 AI 訓練成本的既有認知。
本篇文章將深入探討 DeepSeek 的崛起,並從多個角度分析其技術優勢、核心競爭力,以及對AI產業的啟發,一起看下去吧!
[Leetcode] 0020. Valid Parentheses
Given a string s containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the input string is valid.
An input string is valid if:
Open brackets must be closed by the same type of brackets.
Open brackets must be closed in the correct order.
Every close bracket has a corresponding open bracket of the same type.
[Leetcode] 0049. Group Anagrams
Given an array of strings strs, group the anagrams together. You can return the answer in any order.
An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
[Leetcode] 0242. Valid Anagram
Given two strings s and t, return true if t is an anagram of s, and false otherwise.
An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
[Leetcode] 0076. Minimum Window Substring
Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every character in t (including duplicates) is included in the window. If there is no such substring, return the empty string “”.
The testcases will be generated such that the answer is unique.
[Leetcode] 0424. Longest Repeating Character Replacement
You are given a string s and an integer k. You can choose any character of the string and change it to any other uppercase English character. You can perform this operation at most k times.
Return the length of the longest substring containing the same letter you can get after performing the above operations.
[Leetcode] 0003. Longest Substring Without Repeating Characters
Given a string s, find the length of the longest substring without repeating characters.
[Leetcode] 0212. Word Search II
Given an m x n board of characters and a list of strings words, return all words on the board.
Each word must be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or vertically neighboring. The same letter cell may not be used more than once in a word.
[Leetcode] 0079. Word Search
Given an m x n grid of characters board and a string word, return true if word exists in the grid.
The word can be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or vertically neighboring. The same letter cell may not be used more than once.
[Leetcode] 0048. Rotate Image
You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise).
You have to rotate the image in-place, which means you have to modify the input 2D matrix directly. DO NOT allocate another 2D matrix and do the rotation.
[Leetcode] 0885. Spiral Matrix III
You start at the cell (rStart, cStart) of an rows x cols grid facing east. The northwest corner is at the first row and column in the grid, and the southeast corner is at the last row and column.
You will walk in a clockwise spiral shape to visit every position in this grid. Whenever you move outside the grid’s boundary, we continue our walk outside the grid (but may return to the grid boundary later.). Eventually, we reach all rows * cols spaces of the grid.
Return an array of coordinates representing the positions of the grid in the order you visited them.
[Leetcode] 0059. Spiral Matrix II
Given a positive integer n, generate an n x n matrix filled with elements from 1 to n2 in spiral order.
[Leetcode] 0054. Spiral Matrix
Given an m x n matrix, return all elements of the matrix in spiral order.
[Leetcode] 0073. Set Matrix Zeroes
Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0’s.
You must do it in place.
[Leetcode] 0143. Reorder List
You are given the head of a singly linked-list. The list can be represented as:
L0 → L1 → … → Ln – 1 → Ln
Reorder the list to be on the following form:
L0 → Ln → L1 → Ln – 1 → L2 → Ln – 2 → …
You may not modify the values in the list’s nodes. Only nodes themselves may be changed.
CES 2025:NVIDIA 如何用 3 大關鍵推動 AI 技術革新?
AI 的快速崛起正以前所未有的速度改變著我們的世界,而在這個浪潮中,NVIDIA 無疑是舉足輕重的推手!在剛結束的 CES 2024 中,NVIDIA 的多項發表再次引領了行業方向,無論是硬體性能的突破還是 AI 應用的普及,都為 AI 技術的未來發展注入了強勁動能。
今天,我們就來聚焦於 NVIDIA 在 CES 的一些最新發表,以及這些更新如何影響我們的未來!
[Leetcode] 0019. Remove Nth Node From End of List
Given the head of a linked list, remove the nth node from the end of the list and return its head.