One day, my website was replaced by a OpenRestry installed page. I did nothing, but it just happened. I checked the nginx log and it […]
Simple Text Editor
Description Submission The reversed operation of append is delete, so the following program can be simplified if we implement these 2 operations as separate modules.
Largest Rectangle
Description Submission Record each possible starting position(When the height increases compared with the previous height) If the height decreases, replace the height of all the […]
Game of Two Stacks
Description Submission Sliding Window To avoid the marginal cases, i and j are guaranteed to be 1 bigger
Problem Solving(Basic) – HackerRank Skills Certification
Active Traders Description Submission Balanced System Files Partition Description Submission Certificate https://www.hackerrank.com/certificates/a4d96111023d
How to use bits/stdc++.h in CLion on macOS
References 1.https://codeforces.com/blog/entry/70957
Equal Stacks
Description Submission Submission Following is not a simplified version We don’t have to use real stacks, moving pointers(or indices) are enough