iT邦幫忙

鐵人檔案

2024 iThome 鐵人賽
回列表
佛心分享-刷題不只是刷題

轉生理工組後從零開始的leetcode刷題 系列

在極少相關背景知識的情況下,嘗試自己摸索leetcode,培養java為主的編程能力。
畢竟未來也是躲不掉的,不如就趁著這個機會好好打下基礎。

鐵人鍊成 | 共 30 篇文章 | 0 人訂閱 訂閱系列文 RSS系列文
DAY 11

day-11[medium.2017]grid game

You are given a 0-indexed 2D array grid of size 2 x n, where grid[r][c] represen...

2024-09-25 ‧ 由 leilei430 分享
DAY 12

day-12[medium.2007]find original array from doubled array

An integer array original is transformed into a doubled array changed by appendi...

2024-09-26 ‧ 由 leilei430 分享
DAY 13

day-13[medium.2063]vowels all substrings

Given a string word, return the sum of the number of vowels ('a', 'e', 'i', 'o',...

2024-09-27 ‧ 由 leilei430 分享
DAY 14

day-14[medium.2029]stone game IX

Alice and Bob continue their games with stones. There is a row of n stones, and...

2024-09-28 ‧ 由 leilei430 分享
DAY 15

day-15[medium.2593]find score of array after marking all element

You are given an array nums consisting of positive integers. Starting with score...

2024-09-29 ‧ 由 leilei430 分享
DAY 16

day-16[medium.2545]sort the student by their Kth score

There is a class with m students and n exams. You are given a 0-indexed m x n in...

2024-09-30 ‧ 由 leilei430 分享
DAY 17

day-17[medium.2637]count the number of good subarrays

Given an integer array nums and an integer k, return the number of good subarray...

2024-10-01 ‧ 由 leilei430 分享
DAY 18

day-18[medium.421]maximum xor of numbers in an array

Given an integer array nums, return the maximum result of nums[i] XOR nums[j], w...

2024-10-02 ‧ 由 leilei430 分享
DAY 19

day-19[medium.397]integer replacement

Given a positive integer n, you can apply one of the following operations: If n...

2024-10-03 ‧ 由 leilei430 分享
DAY 20

day-20[medium.491]nun-decreasing subsequences

Given an integer array nums, return all the different possible non-decreasing su...

2024-10-04 ‧ 由 leilei430 分享