My answers of HackerRank problems
If you see a source code filename foo-bar.cs
in src folder, you have two ways to open the problem description:
-
Manually open https://www.hackerrank.com/challenges/foo-bar to get the problem description.
-
Run
description foo-bar
in command line. -
If you use Visual Studio Code, press
Ctrl+Shift+P
and typeRun Task
then pressEnter
, choosedescription
task. Make sure the active document is the source code file.
Put sample input and output files inside cases/foo-bar
folder with filename inputX.txt
and outputX.txt
.
- Run
runtest foo-bar
in command line. - If you use Visual Studio Code, press
Ctrl+Shift+B
. Make sure the active document is the source code file.