+
Skip to content

EvgenyWas/cses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSES problem set solutions

This repository contains my solutions to the CSES Problem Set, which I’m working through as practice while reading Guide to Competitive Programming by Antti Laaksonen.

Structure

  • Each problem has its own file, and all solutions are organized into folders by problem set topics.
  • A base template _template.js is included, which handles reading from stdin and is suitable for direct submission to CSES.

Goals

  • Practice problem-solving and algorithmic thinking.
  • Improve speed and accuracy in competitive programming.
  • Apply techniques from the book to real problems.

Running automatically with VS Code tasks

Run any CSES solution interactively with multi-line input and automatic reruns for testing.

  1. Make the loop script executable:
chmod +x .vscode/scripts/loop.sh
  1. Run the VS Code task Run CSES solution, pick the folder (topic), and enter the script name (without *.js extension).

  2. Type your input (multi-line supported), then press Ctrl+D to run the script.

  3. After execution, press Enter to rerun or Ctrl+C to quit.

Remarks

CSES Node.js version support: https://cses.fi/howto/

Set up calling nvm use automatically with .nvmrc file - https://github.com/nvm-sh/nvm?tab=readme-ov-file#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file

About

My solutions for CSES problem set

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载