iT邦幫忙

鐵人檔案

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

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

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

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

day-21[medium.2348]number of zero

Given an integer array nums, return the number of subarrays filled with 0. A sub...

2024-10-05 ‧ 由 leilei430 分享
DAY 22

day-22[medium.2434]using a robot to print the lexicographically smallest string

You are given a string s and a robot that currently holds an empty string t. App...

2024-10-06 ‧ 由 leilei430 分享
DAY 23

day-23[medium.2327]number of people aware of a secret

On day 1, one person discovers a secret. You are given an integer delay, which m...

2024-10-07 ‧ 由 leilei430 分享
DAY 24

day-24[medium.2294]partition array such that maximum difference is k

You are given an integer array nums and an integer k. You may partition nums int...

2024-10-08 ‧ 由 leilei430 分享
DAY 25

day-25[medium.2563]count the number of fair pairs

Given a 0-indexed integer array nums of size n and two integers lower and upper,...

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

day-26[medium.2554]maximum number of integers to choose from a range i

You are given an integer array banned and two integers n and maxSum. You are cho...

2024-10-10 ‧ 由 leilei430 分享
DAY 27

day-27[medium.2380]time needed to rearrange a binary string

You are given a binary string s. In one second, all occurrences of "01&quot...

2024-10-11 ‧ 由 leilei430 分享
DAY 28

day-28[medium.2134]minimum swaps to group all 1's together ll

A swap is defined as taking two distinct positions in an array and swapping the...

2024-10-12 ‧ 由 leilei430 分享
DAY 29

day-29[medium.2044]Count Number of Maximum Bitwise-OR Subsets

Given an integer array nums, find the maximum possible bitwise OR of a subset of...

2024-10-13 ‧ 由 leilei430 分享
DAY 30

day-30[medium.1881]Maximum Value after Insertion

You are given a very large integer n, represented as a string,negative and an in...

2024-10-14 ‧ 由 leilei430 分享