in 2 days
Join our next Contest Weekly Contest 530
LeetCode
11 hours ago
LeetCode posted See What's Rising in Company Lists. Rise With It. 📈

Your company lists just leveled up. Now it's your turn. Every company list now refreshes daily, so you always know what's moving.
📈 Trending Companies The orange ↗...


LeetCode
10 days ago
LeetCode posted 🚀 Project Challenge: Can You Build a Product from Scratch?

AI can write code, but building a real product takes more. Could you lead the way? Real-world Project is about more than just getting your code to run. You...


LeetCode
17 days ago
LeetCode posted 🍂 Thanksgiving Sale Is Now Live

Hi LeetCoders! 👋 Thanksgiving is a time to appreciate how far we've come and look ahead to what's next. If sharpening your coding skills is on your list, here's a...


35 minutes ago
An anonymous user posted # Full Stack Developer Interview Experience | Technical & Coding Rounds

I recently went through a Full Stack Developer interview process, and I thought I'd share my experience here because it covered a mix of coding, practical development, and technical discussions....


battosai___
30 minutes ago
battosai___ posted trying to figure out coding as a first timer

guys i am new to doing coding the traditional way which i was doing and thinking that i could code a little this site has humbled me a lot i...


AshfaqRiyaldeen
8 hours ago
AshfaqRiyaldeen posted Your Solution Passes the Examples but Fails Hidden Tests. What Do You Check First?

Your code passes every example. You submit it, and a hidden test fails. Examples help explain the problem, but they do not cover every situation allowed by the constraints....


johanthegoat
16 hours ago
johanthegoat posted Study notes: Right-to-Left Chunking in TypeScript: Strip, Uppercase, Group by K

Grouping from the left would leave the short group at the end, but the problem wants the short group first. Working backward from the end gives full groups of k...


johanthegoat
16 hours ago
johanthegoat posted Study notes: Two-Pointer Climb and Descent for Mountain Array in Python3

A mountain array is valid only if it climbs strictly to a single peak and then descends strictly to the end. Walking forward while the values increase finds the peak,...


johanthegoat
16 hours ago
johanthegoat posted Study notes: Backtracking with Sorted Duplicate Skipping and Square Pruning (C++)

Only permutations where every adjacent pair sums to a perfect square count, so we can build the permutation one element at a time and abandon a branch the moment a...


johanthegoat
16 hours ago
johanthegoat posted Study notes: Meet in the Middle + Shifted Sums to Zero | Go

Two arrays have equal averages exactly when a subset of size k has average equal to the total average. If every value is shifted by the overall average, we just...


4 days ago
The Apply Discount Every n Orders solution has been published
There is a supermarket that is frequented by many customers. The products sold at the supermarket are represented as two parallel integer arrays products and prices, where the ith product...
4 days ago
The Process Restricted Friend Requests solution has been published
You are given an integer n indicating the number of people in a network. Each person is labeled from 0 to n - 1. You are also given a 0-indexed...
4 days ago
The Smallest Unique Subarray solution has been published
You are given an integer array nums. Find the minimum length of a subarray that is not identical to any other subarray in nums. Return an integer denoting the minimum...
4 days ago
The Maximum Number of Items From Sale II solution has been published
You are given a 2D integer array items, where items[i] = [factori, pricei] represents the ith item. You are also given an integer budget. There are unlimited copies of each...
4 days ago
The Maximum Number of Items From Sale I solution has been published
You are given a 2D integer array items, where items[i] = [factori, pricei] represents the ith item. You are also given an integer budget. There are unlimited copies of each...
4 days ago
The Stone Removal Game solution has been published
Alice and Bob are playing a game where they take turns removing stones from a pile, with Alice going first. Alice starts by removing exactly 10 stones on her first...
5 days ago
7 days ago
The Minimum Score by Changing Two Elements solution has been published
You are given an integer array nums. The low score of nums is the minimum absolute difference between any two integers. The high score of nums is the maximum absolute...
9 days ago
The Maximize Consecutive Elements in an Array After Modification solution has been published
You are given a 0-indexed array nums consisting of positive integers. Initially, you can increase the value of any element in the array by at most 1. After that, you...
9 days ago
The Minimum Changes to Make K Semi-palindromes solution has been published
Given a string s and an integer k, partition s into k substrings such that the letter changes needed to make each substring a semi-palindrome are minimized. Return the minimum...
9 days ago
The Maximum Subarray With Equal Products solution has been published
You are given an array of positive integers nums. An array arr is called product equivalent if prod(arr) == lcm(arr) * gcd(arr), where: prod(arr) is the product of all elements...
12 days ago
16 days ago
The Check if All A's Appears Before All B's solution has been published
Given a string s consisting of only the characters 'a' and 'b', return true if every 'a' appears before every 'b' in the string. Otherwise, return false. Example 1: Input:...
17 days ago
The Calculate Digit Sum of a String solution has been published
You are given a string s consisting of digits and an integer k. A round can be completed if the length of s is greater than k. In one round,...
17 days ago
The Count Non-Decreasing Subarrays After K Operations solution has been published
You are given an array nums of n integers and an integer k. For each subarray of nums, you can apply up to k operations on it. In each operation,...
17 days ago
The Minimum Cost to Acquire Required Items solution has been published
You are given five integers cost1, cost2, costBoth, need1, and need2. There are three types of items available: An item of type 1 costs cost1 and contributes 1 unit to...