iT邦幫忙

鐵人檔案

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

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

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

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

day-1 [easy.1694]reformat phone number

You are given a phone number as a string number. number consists of digits, spac...

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

day-2 [easy.1929]concatenation of array

Given an integer array nums of length n, you want to create an array ans of leng...

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

day-3[easy.2047]number of valid words in a sentence

A sentence consists of lowercase letters ('a' to 'z'), digits ('0' to '9'), hyph...

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

day-4[easy.1812]determine color of a chessboard square

You are given coordinates, a string that represents the coordinates of a square...

2024-09-18 ‧ 由 leilei430 分享
DAY 5

day-5[easy.1913]maximum product difference between two pairs

The product difference between two pairs (a, b) and (c, d) is defined as (a * b)...

2024-09-19 ‧ 由 leilei430 分享
DAY 6

day-6[easy.1893]check if all the integers in a range are covered

You are given a 2D integer array ranges and two integers left and right. Each ra...

2024-09-20 ‧ 由 leilei430 分享
DAY 7

day-7[easy.1952]three divisors

Given an integer n, return true if n has exactly three positive divisors. Otherw...

2024-09-21 ‧ 由 leilei430 分享
DAY 8

day-8[medium.2012]sum of beauty in the array

You are given a 0-indexed integer array nums. For each index i (1 <= i <=...

2024-09-22 ‧ 由 leilei430 分享
DAY 9

day-9[medium.2048]next greater numerically balanced number

An integer x is numerically balanced if for every digit d in the number x, there...

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

day-10[easy.2016]maximum difference between increasing elements

Given a 0-indexed integer array nums of size n, find the maximum difference betw...

2024-09-24 ‧ 由 leilei430 分享