Meta Hacker Cup 2024 Participation Review

Read more
25th Place on Meta Hacker Cup

Read more
2nd Place on LC Contest

Three of my accounts recently achieved the #1, #2 and #3 leetcode ratings in South Korea. lol 😂

Leetcode contest speed-run global rank 2nd

Read more
53rd Place on Google Codejam Farewell Round

Read more
3rd Place on LC Contest

Leetcode contest speed-run global rank 3rd

Read more
40th Place on Google Kickstart

Read more
[LeetCode] Number of Stable Subsequences

3686. Number of Stable Subsequences

You are given an integer array nums.

A subsequence is stable if it does not contain three consecutive elements with the same parity when the subsequence is read in order (i.e., consecutive inside the subsequence).

Return the number of stable subsequences.

Since the answer may be too large, return it modulo 109 + 7.

Read more
[LeetCode] Subsequence Sum After Capping Elements

3685. Subsequence Sum After Capping Elements

You are given an integer array nums of size n and a positive integer k.

An array capped by value x is obtained by replacing every element nums[i] with min(nums[i], x).

For each integer x from 1 to n, determine whether it is possible to choose a subsequence from the array capped by x such that the sum of the chosen elements is exactly k.

Return a 0-indexed boolean array answer of size n, where answer[i] is true if it is possible when using x = i + 1, and false otherwise.

Read more
[LeetCode] Maximize Sum of At Most K Distinct Elements

3684. Maximize Sum of At Most K Distinct Elements

You are given a positive integer array nums and an integer k.

Choose at most k elements from nums so that their sum is maximized. However, the chosen numbers must be distinct.

Return an array containing the chosen numbers in strictly descending order.

Read more
[LeetCode] Earliest Time to Finish One Task

3683. Earliest Time to Finish One Task

You are given a 2D integer array tasks where tasks[i] = [si, ti].

Each [si, ti] in tasks represents a task with start time si that takes ti units of time to finish.

Return the earliest time at which at least one task is finished.

Read more