LeetCode solutions — page 18
Every LeetCode problem I have solved, with the accepted code in each language I solved it in. The problem statements stay on LeetCode where they belong — what is here is the solution, the runtime it was accepted at, and a link to the repository it came from.
1,055 solutions
Showing 851–900 of 1,055 solutions.
- 3427. Special Array II Medium Languages: Python Accepted runtime 35ms
- 3428. Find the XOR of Numbers Which Appear Twice Easy Languages: C++ Accepted runtime 0ms
- 3429. Special Array I Easy Languages: C++ Accepted runtime 0ms
- 3430. Count Days Without Meetings Medium Languages: Python Accepted runtime 191ms
- 3434. Find the Number of Distinct Colors Among the Balls Medium Languages: Python Accepted runtime 59ms
- 3437. Maximum Total Damage With Spell Casting Medium Languages: Python Accepted runtime 1121ms
- 3439. Find Minimum Diameter After Merging Two Trees Hard Languages: Python Accepted runtime 525ms
- 3444. Find the Number of Good Pairs II Medium Languages: Python Accepted runtime 7485ms
- 3446. Find the Number of Good Pairs I Easy Languages: C++ Accepted runtime 0ms
- 3447. Clear Digits Easy Languages: C++ Accepted runtime 0ms
- 3450. Find the Child Who Has the Ball After K Seconds Easy Languages: Python Accepted runtime 0ms
- 3454. Minimum Operations to Make Array Equal to Target Hard Languages: Python Accepted runtime 67ms
- 3455. Minimum Length of String After Operations Medium Languages: Python Accepted runtime 147ms
- 3459. Find the Minimum Area to Cover All Ones II Hard Languages: Python Accepted runtime 6583ms
- 3461. Find the Minimum Area to Cover All Ones I Medium Languages: Python Accepted runtime 2999ms
- 3463. Alternating Groups I Easy Languages: Python Accepted runtime 60ms
- 3468. Find the Encrypted String Easy Languages: C++ Accepted runtime 0ms
- 3469. Maximum Height of a Triangle Easy Languages: Python Accepted runtime 28ms
- 3471. Minimum Average of Smallest and Largest Elements Easy Languages: C++ Accepted runtime 0ms
- 3476. Find Minimum Operations to Make All Elements Divisible by Three Easy Languages: C++ Accepted runtime 0ms
- 3479. Count the Number of Substrings With Dominant Ones Medium Languages: Python Accepted runtime 19769ms
- 3483. Alternating Groups II Medium Languages: Python Accepted runtime 737ms
- 3484. Lexicographically Smallest String After a Swap Easy Languages: Python Accepted runtime 0ms
- 3491. Find the Maximum Length of Valid Subsequence II Medium Languages: Python Accepted runtime 1247ms
- 3492. Count Submatrices With Equal Frequency of X and Y Medium Languages: Python Accepted runtime 924ms
- 3495. K-th Nearest Obstacle Queries Medium Languages: Python Accepted runtime 194ms
- 3507. Find the Count of Numbers Which Are Not Special Medium Languages: Python Accepted runtime 227ms
- 3508. Number of Bit Changes to Make Two Integers Equal Easy Languages: Python Accepted runtime 4ms
- 3510. Maximize the Total Height of Unique Towers Medium Languages: Python Accepted runtime 219ms
- 3511. Find the Winning Player in Coin Game Easy Languages: Python Accepted runtime 0ms
- 3515. Find if Digit Game Can Be Won Easy Languages: Python Accepted runtime 0ms
- 3516. Design Neighbor Sum Service Easy Languages: Python Accepted runtime 28ms
- 3519. Find the Number of Winning Players Easy Languages: Python Accepted runtime 5ms
- 3530. Odd and Even Transactions Medium Languages: SQL Accepted runtime 257ms
- 3531. Minimum Amount of Damage Dealt to Bob Hard Languages: Python Accepted runtime 219ms
- 3533. Snake in Matrix Easy Languages: Python Accepted runtime 1ms
- 3534. Count Almost Equal Pairs I Medium Languages: Python Accepted runtime 3161ms
- 3540. Hash Divided String Medium Languages: Python Accepted runtime 19ms
- 3543. Count Substrings That Satisfy K-Constraint I Easy Languages: Python Accepted runtime 19ms
- 3544. Count Almost Equal Pairs II Hard Languages: Python Accepted runtime 5414ms
- 3546. Count Substrings That Satisfy K-Constraint II Hard Languages: Python Accepted runtime 591ms
- 3548. Find the Count of Good Integers Hard Languages: Python Accepted runtime 814ms
- 3552. Find the Largest Palindrome Divisible by K Hard Languages: Python Accepted runtime 99ms
- 3553. Check if Two Chessboard Squares Have the Same Color Easy Languages: Python Accepted runtime 32ms
- 3555. Final Array State After K Multiplication Operations I Easy Languages: Python Accepted runtime 2ms
- 3556. Final Array State After K Multiplication Operations II Hard Languages: Python Accepted runtime 368ms
- 3559. Minimum Number of Valid Strings to Form Target I Medium Languages: Python Accepted runtime 11060ms
- 3563. Select Cells in Grid With Maximum Score Hard Languages: Python Accepted runtime 344ms
- 3566. Find the Sequence of Strings Appeared on the Screen Medium Languages: Python Accepted runtime 21ms
- 3567. Convert Date to Binary Easy Languages: Python Accepted runtime 0ms
Page 18 of 22
These are practice solutions, not lessons. If you came here to learn how any of it works, the explanations live in the lessons.