[Codeforces] Round #661 (Div. 3) D. Binary String To SubsequencesRead more
[Codeforces] Educational Round 94 (Rated for Div. 2) C. Binary String ReconstructionRead more
[Codeforces] Round #668 (Div. 1) A. Balanced BitstringRead more
97th Place on Google Kickstart

후기

Read more
[Kick Start 2022 Round E] Pizza DeliveryRead more
[Kick Start 2022 Round E] Matching PalindromeRead more
[Kick Start 2022 Round E] Students and MentorsRead more
[Kick Start 2022 Round E] Coloring GameRead more
[LeetCode] Minimum Hours of Training to Win a Competition

2383. Minimum Hours of Training to Win a Competition

You are entering a competition, and are given two positive integers initialEnergy and initialExperience denoting your initial energy and initial experience respectively.

You are also given two 0-indexed integer arrays energy and experience, both of length n.

You will face n opponents in order. The energy and experience of the ith opponent is denoted by energy[i] and experience[i] respectively. When you face an opponent, you need to have both strictly greater experience and energy to defeat them and move to the next opponent if available.

Defeating the ith opponent increases your experience by experience[i], but decreases your energy by energy[i].

Before starting the competition, you can train for some number of hours. After each hour of training, you can either choose to increase your initial experience by one, or increase your initial energy by one.

Return the minimum number of training hours required to defeat all n opponents.

Read more
[LeetCode] Largest Palindromic Number

2384. Largest Palindromic Number

You are given a string num consisting of digits only.

Return the largest palindromic integer (in the form of a string) that can be formed using digits taken from num. It should not contain leading zeroes.

Notes:

  • You do not need to use all the digits of num, but you must use at least one digit.
  • The digits can be reordered.
Read more