LeetCode solutions — page 12
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 551–600 of 1,055 solutions.
- 2495. Number of Unique Subjects Taught by Each Teacher Easy Languages: SQL Accepted runtime 474ms
- 2496. Count Days Spent Together Easy Languages: Python Accepted runtime 0ms
- 2502. Sort the People Easy Languages: Python Accepted runtime 4ms
- 2505. Number of Good Paths Hard Languages: Python Accepted runtime 403ms
- 2507. Number of Common Factors Easy Languages: Python Accepted runtime 0ms
- 2511. Partition String Into Substrings With Values at Most K Medium Languages: Python Accepted runtime 51ms
- 2518. The Employee That Worked on the Longest Task Easy Languages: Python Accepted runtime 5ms
- 2524. Largest Positive Integer That Exists With Its Negative Easy Languages: Python Accepted runtime 10ms
- 2525. Count Number of Distinct Integers After Reverse Operations Medium Languages: JavaScript Accepted runtime 173ms
- 2526. Longest Increasing Subsequence II Hard Languages: Python Accepted runtime 1224ms
- 2527. Count Subarrays With Fixed Bounds Hard Languages: Python Accepted runtime 176ms
- 2528. Number of Valid Clock Times Easy Languages: Python Accepted runtime 67ms
- 2529. Range Product Queries of Powers Medium Languages: Python Accepted runtime 83ms
- 2532. Remove Letter To Equalize Frequency Easy Languages: Python Accepted runtime 0ms
- 2536. Determine if Two Events Have Conflict Easy Languages: Python Accepted runtime 0ms
- 2538. Minimum Cost to Make Array Equal Hard Languages: Python Accepted runtime 77ms
- 2539. Minimum Number of Operations to Make Arrays Similar Hard Languages: Python Accepted runtime 136ms
- 2541. Sum of Number and Its Reverse Medium Languages: JavaScript Accepted runtime 1629ms
- 2542. Average Value of Even Numbers That Are Divisible by Three Easy Languages: Python Accepted runtime 0ms
- 2543. Most Popular Video Creator Medium Languages: C++ Accepted runtime 123ms
- 2544. Minimum Addition to Make Integer Beautiful Medium Languages: Python Accepted runtime 3ms
- 2547. Odd String Difference Easy Languages: Python Accepted runtime 1ms
- 2551. Apply Operations to an Array Easy Languages: JavaScript Accepted runtime 1ms
- 2556. Convert the Temperature Easy Languages: Python Accepted runtime 0ms
- 2561. Number of Distinct Averages Easy Languages: Python Accepted runtime 0ms
- 2564. Most Profitable Path in a Tree Medium Languages: Python Accepted runtime 247ms
- 2566. Number of Unequal Triplets in Array Easy Languages: Python Accepted runtime 238ms
- 2568. Minimum Fuel Cost to Report to the Capital Medium Languages: Python Accepted runtime 221ms
- 2569. Number of Beautiful Partitions Hard Languages: Python Accepted runtime 1187ms
- 2571. Find the Pivot Integer Easy Languages: Python Accepted runtime 7ms
- 2574. Count Subarrays With Median K Hard Languages: Python Accepted runtime 31ms
- 2575. Minimum Cuts to Divide a Circle Easy Languages: Python Accepted runtime 0ms
- 2576. Minimum Penalty for a Shop Medium Languages: Python Accepted runtime 44ms
- 2580. Circular Sentence Easy Languages: Python Accepted runtime 0ms
- 2585. Delete Greatest Value in Each Row Easy Languages: Python Accepted runtime 4ms
- 2589. Maximum Value of a String in an Array Easy Languages: Python Accepted runtime 0ms
- 2594. Count Pairs Of Similar Strings Easy Languages: Python Accepted runtime 24ms
- 2598. Shortest Distance to Target String in a Circular Array Easy Languages: Python Accepted runtime 0ms
- 2599. Take K of Each Character From Left and Right Medium Languages: Python Accepted runtime 219ms
- 2600. Maximum Tastiness of Candy Basket Medium Languages: Python Accepted runtime 506ms
- 2601. Number of Great Partitions Hard Languages: Python Accepted runtime 65ms
- 2602. Maximum Enemy Forts That Can Be Captured Easy Languages: Python Accepted runtime 0ms
- 2605. Count Anagrams Hard Languages: Python Accepted runtime 692ms
- 2608. Count the Digits That Divide a Number Easy Languages: Python Accepted runtime 0ms
- 2610. Closest Prime Numbers in Range Medium Languages: Python Accepted runtime 1584ms
- 2614. Maximum Count of Positive Integer and Negative Integer Easy Languages: Python Accepted runtime 5ms
- 2615. Make Number of Distinct Characters Equal Medium Languages: Python Accepted runtime 63ms
- 2616. Maximal Score After Applying K Operations Medium Languages: Python Accepted runtime 256ms
- 2618. Maximize the Minimum Powered City Hard Languages: Python Accepted runtime 2737ms
- 2619. Categorize Box According to Criteria Easy Languages: Python Accepted runtime 0ms
Page 12 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.