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] Maximum and Minimum Sums of at Most Size K Subarrays

3430. Maximum and Minimum Sums of at Most Size K Subarrays

You are given an integer array nums and a positive integer k. Return the sum of the maximum and minimum elements of all subarrays with at most k elements.

Read more
[LeetCode] Paint House IV

3429. Paint House IV

You are given an even integer n representing the number of houses arranged in a straight line, and a 2D array cost of size n x 3, where cost[i][j] represents the cost of painting house i with color j + 1.

The houses will look beautiful if they satisfy the following conditions:

  • No two adjacent houses are painted the same color.
  • Houses equidistant from the ends of the row are not painted the same color. For example, if n = 6, houses at positions (0, 5), (1, 4), and (2, 3) are considered equidistant.

Return the minimum cost to paint the houses such that they look beautiful.

Read more
[LeetCode] Maximum and Minimum Sums of at Most Size K Subsequences

3428. Maximum and Minimum Sums of at Most Size K Subsequences

You are given an integer array nums and a positive integer k. Return the sum of the maximum and minimum elements of all subsequences of nums with at most k elements.

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

Read more
[LeetCode] Sum of Variable Length Subarrays

3427. Sum of Variable Length Subarrays

You are given an integer array nums of size n. For each index i where 0 <= i < n, define a subarray nums[start ... i] where start = max(0, i - nums[i]).

Return the total sum of all elements from the subarray defined for each index in the array.

Read more