Welcome to the Software Technology Blog, the knowledge articles page for React, JavaScript, and technical skills. Whether you're looking for technical information about monorepo, state management tips for zustand, or want to improve your understanding of front-end development, there's a wealth of resources here. Each article is carefully crafted to provide clear, easy-to-understand content to help you find the information you need quickly. From basic concepts to advanced tips, there's something for everyone, whether you're a beginner or an advanced developer.If you are interested in graphic content, you can also refer to our 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 of 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: How does NVIDIA use 3 keys to promote AI technology innovation?
The rapid rise of AI is changing our world at an unprecedented speed, and NVIDIA is undoubtedly a pivotal driver in this wave! In the just-concluded CES 2024, NVIDIA's multiple announcements have once again led the industry direction. Whether it is breakthroughs in hardware performance or the popularization of AI applications, they have injected strong momentum into the future development of AI technology.
Today, we will focus on some of NVIDIA’s latest announcements at CES and how these updates will affect our future!
[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.