欢迎来到软体技术部落格,这里是 React、JavaScript 及技术技能的知识文章页面。无论是在寻找关于monorepo 的技术、zustand 的状态管理技巧,还是希望加强对前端开发的理解,这里都有丰富的资源。每篇文章都精心撰写,旨在提供清晰、易于理解的内容,帮助大家快速找到所需资讯。从基本概念到进阶技巧,无论是初学或是进阶,这里都有适合大家的内容。如果对于图文式内容有兴趣,也可以参考我们 Instagram。
[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 mxn 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 mxn 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 nxn 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 nxn matrix filled with elements from 1 to n2 in spiral order.
[Leetcode] 0054. Spiral Matrix
Given an mxn matrix, return all elements of the matrix in spiral order.
[Leetcode] 0073. Set Matrix Zeroes
Given an mxn 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.
[Leetcode] 0252. Meeting Rooms
Given an array of meeting time intervals where intervals[i] = [starti, endi], determine if a person could attend all meetings.
[Leetcode] 0021. Merge Two Sorted Lists
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] 2402. Meeting Rooms III
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] 0253. Meeting Rooms II
Given an array of meeting time intervals intervals where intervals[i] = [starti, endi], return the minimum number of conference rooms required.
[Leetcode] 0023. Merge k Sorted Lists
You are given an array of k linked-lists lists, each linked-list is sorted in ascending order.
Merge all the linked-lists into one sorted linked-list and return it.