iT邦幫忙

鐵人檔案

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

leetcode 系列

解題leetcode 並且說明

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

leetcode 1. Two Sum

今天要分享的題目是最簡單的題目:Given an array of integers nums and an integer target, return in...

2025-09-15 ‧ 由 412570510 分享
DAY 2

leetcode 2. Add Two Numbers

題目:You are given two non-empty linked lists representing two non-negative intege...

2025-09-16 ‧ 由 412570510 分享
DAY 3

leetcode 3. Longest Substring Without Repeating Characters

題目:Given a string s, find the length of the longest substring without duplicate...

2025-09-17 ‧ 由 412570510 分享
DAY 4

leetcode 4. Median of Two Sorted Arrays

題目:Given two sorted arrays nums1 and nums2 of size m and n respectively, return...

2025-09-18 ‧ 由 412570510 分享
DAY 5

leetcode 5. Longest Palindromic Substring

題目:Given a string s, return the longest palindromic substring in s.給定一個字串 s,請找出...

2025-09-19 ‧ 由 412570510 分享
DAY 6

leetcode 6. Zigzag Conversion

題目:The string "PAYPALISHIRING" is written in a zigzag pattern on a giv...

2025-09-20 ‧ 由 412570510 分享
DAY 7

leetcode 7. Reverse Integer

題目: 解題思路:取末位數:用 pop = x % 10 取出最後一位。 去掉末位:x = x / 10。 拼接到結果:rev = rev * 10 + pop...

2025-09-21 ‧ 由 412570510 分享
DAY 8

leetcode 8. String to Integer (atoi)

題目:Implement the myAtoi(string s) function, which converts a string to a 32-bit...

2025-09-22 ‧ 由 412570510 分享
DAY 9

leetcode 9. Palindrome Number

題目:Given an integer x, return true if x is a palindrome, and false otherwise.給定一...

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

leetcode 10. Regular Expression Matching

題目:Given an input string s and a pattern p, implement regular expression matchin...

2025-09-24 ‧ 由 412570510 分享