iT邦幫忙

鐵人檔案

2025 iThome 鐵人賽
回列表
自我挑戰組

leetcode 系列

解題leetcode 並且說明

參賽天數 26 天 | 共 30 篇文章 | 1 人訂閱 訂閱系列文 RSS系列文
DAY 21

leetcode 21. Merge Two Sorted Lists

題目:You are given the heads of two sorted linked lists list1 and list2. Merge the...

2025-10-05 ‧ 由 412570510 分享
DAY 22

leetcode 22. Generate Parentheses

題目:Given n pairs of parentheses, write a function to generate all combinations o...

2025-10-06 ‧ 由 412570510 分享
DAY 23

leetcode 23. Merge k Sorted Lists

題目:You are given an array of k linked-lists lists, each linked-list is sorted in...

2025-10-07 ‧ 由 412570510 分享
DAY 24

leetcode 24. Swap Nodes in Pairs

題目:Given a linked list, swap every two adjacent nodes and return its head. You m...

2025-10-08 ‧ 由 412570510 分享
DAY 25

leetcode 25. Reverse Nodes in k-Group

題目:Given the head of a linked list, reverse the nodes of the list k at a time, a...

2025-10-09 ‧ 由 412570510 分享
DAY 26

leetcode 26. Remove Duplicates from Sorted Array

題目:Given an integer array nums sorted in non-decreasing order, remove the duplic...

2025-10-10 ‧ 由 412570510 分享

leetcode 27. Remove Element

題目:Given an integer array nums and an integer val, remove all occurrences of val...

2025-10-20 ‧ 由 412570510 分享

leetcode 28 Find the Index of the First Occurrence in a String

題目Given two strings needle and haystack, return the index of the first occurrenc...

2025-10-20 ‧ 由 412570510 分享

LeetCode 第 29 題:Divide Two Integers

題目:給定兩個整數dividend和,不使用乘法、除法和模運算子divisor來除兩個整數。 整數除法應向零方向截斷,這意味著會丟失小數部分。例如,8.345將...

2025-10-20 ‧ 由 412570510 分享

leetcode 30. Substring with Concatenation of All Words

題目:You are given a string s and an array of strings words. All the strings of wo...

2025-10-20 ‧ 由 412570510 分享