[Codeforces] Round #744 (Div. 3) D. Productive MeetingRead more
[Codeforces] Bubble Cup 14 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred, Div. 2) J. Robot FactoryRead more
[LeetCode] Delete Operation for Two Strings

583. Delete Operation for Two Strings

Given two strings word1 and word2, return the minimum number of steps required to make word1 and word2 the same.

In one step, you can delete exactly one character in either string.

Read more
[LeetCode] Edit Distance

72. Edit Distance

Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2.

You have the following three operations permitted on a word:

  • Insert a character
  • Delete a character
  • Replace a character
Read more
[LeetCode] Sliding Puzzle

773. Sliding Puzzle

On an 2 x 3 board, there are five tiles labeled from 1 to 5, and an empty square represented by 0. A move consists of choosing 0 and a 4-directionally adjacent number and swapping it.

The state of the board is solved if and only if the board is [[1,2,3],[4,5,0]].

Given the puzzle board board, return the least number of moves required so that the state of the board is solved. If it is impossible for the state of the board to be solved, return -1.

Read more
[Codeforces] Round #754 (Div. 2) C. Dominant CharacterRead more
[Codeforces] Educational Codeforces Round 116 (Rated for Div. 2) C. BanknotesRead more
[Codeforces] Round #763 (Div. 2) C. Balanced Stone HeapsRead more
[Codeforces] Beta Round #2 A. WinnerRead more
[Codeforces] Deltix Round, Autumn 2021 (open for everyone, rated, Div. 1 + Div. 2) C. Complex Market AnalysisRead more