[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] 0059. Spiral Matrix II Read More »
Leetcode, 技術文章Given a positive integer n, generate an n x n matrix filled with elements from 1 to n2 in spiral order.
[Leetcode] 0059. Spiral Matrix II Read More »
Leetcode, 技術文章Given an m x n matrix, return all elements of the matrix in spiral order.
[Leetcode] 0054. Spiral Matrix Read More »
Leetcode, 技術文章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] 0073. Set Matrix Zeroes Read More »
Leetcode, 技術文章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.
[Leetcode] 0143. Reorder List Read More »
Leetcode, 技術文章AI 的快速崛起正以前所未有的速度改變著我們的世界,而在這個浪潮中,NVIDIA 無疑是舉足輕重的推手!在剛結束的 CES 2024 中,NVIDIA 的多項發表再次引領了行業方向,無論是硬體性能的突破還是 AI 應用的普及,都為 AI 技術的未來發展注入了強勁動能。
今天,我們就來聚焦於 NVIDIA 在 CES 的一些最新發表,以及這些更新如何影響我們的未來!
CES 2025:NVIDIA 如何用 3 大關鍵推動 AI 技術革新? Read More »
技術文章Given the head of a linked list, remove the nth node from the end of the list and return its head.
[Leetcode] 0019. Remove Nth Node From End of List Read More »
Leetcode, 技術文章Given an array of meeting time intervals where intervals[i] = [starti, endi], determine if a person could attend all meetings.
[Leetcode] 0252. Meeting Rooms Read More »
Leetcode, 技術文章You are given the heads of two sorted linked lists list1 and list2.
Merge the two lists in a one sorted list. The list should be made by splicing together the nodes of the first two lists.
Return the head of the merged linked list.
[Leetcode] 0021. Merge Two Sorted Lists Read More »
Leetcode, 技術文章ou are given an integer n. There are n rooms numbered from 0 to n – 1.
You are given a 2D integer array meetings where meetings[i] = [starti, endi] means that a meeting will be held during the half-closed time interval [starti, endi). All the values of starti are unique.
Meetings are allocated to rooms in the following manner:
Each meeting will take place in the unused room with the lowest number.
If there are no available rooms, the meeting will be delayed until a room becomes free. The delayed meeting should have the same duration as the original meeting.
When a room becomes unused, meetings that have an earlier original start time should be given the room.
Return the number of the room that held the most meetings. If there are multiple rooms, return the room with the lowest number.
A half-closed interval [a, b) is the interval between a and b including a and not including b.
[Leetcode] 2402. Meeting Rooms III Read More »
Leetcode, 技術文章Given an array of meeting time intervals intervals where intervals[i] = [starti, endi], return the minimum number of conference rooms required.
[Leetcode] 0253. Meeting Rooms II Read More »
Leetcode, 技術文章