Skip to content

Baekjun Solutions and Codespace

Notifications You must be signed in to change notification settings

aPatchyDev/baekjun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository for solutions to Baekjun

Usage

Create and execute solution files by ./run.py <class #> <problem #>

If ./class{class #}/{problem #}/{solution file}.py is not found, a copy of ./template.py is created.

Optimized workflow

  1. Open the folder in an editor with split view support.
  2. Open 3 panels: solution file, ./in.txt, terminal with shell
  3. Create solution file with ./run.py
  4. Write code in solution file
  5. Paste sample input in ./in.txt
  6. Execute solution with ./run.py
  7. Go back to #3 after completing a problem

Options

  • -f / --file: Set name of {solution file}.py
    • default = sol.py
  • -e / --editor: Set command to execute when creating a new solution file
    • default = None
    • Command is executed as [arg value, path of solution file]
    • Useful for automatically opening the created file in the editor

About

Baekjun Solutions and Codespace

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages