Welcome to HackerRank DSL (Domain Specific Language) Documentation! You can use our the DSL to generate code stubs that read test case data from standard input in hackerrank challenges.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Instructions for MacOS: | |
| - Install the fonts 'Operator Mono' & 'Fira Code' | |
| - Install theme 'Dark Candy' | |
| - Add the following config to the VS Code settings.json: | |
| { | |
| "editor.renderWhitespace": "all", | |
| "editor.fontSize": 14, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # fun stuff | |
| alias lenny='echo \_(ツ)_/¯ | pbcopy' | |
| alias tuxsay='cowsay -f tux ' | |
| alias fortunes='sh ~/.fortunes.sh' | |
| alias life='figlet 42 | lolcat' | |
| alias lol='while true; do sl; done;' | |
| alias starwars='telnet towel.blinkenlights.nl' | |
| alias fancy='figlet $@' | |
| # to make people confused xD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "AD": "Andorra", | |
| "AE": "United Arab Emirates", | |
| "AF": "Afghanistan", | |
| "AG": "Antigua and Barbuda", | |
| "AI": "Anguilla", | |
| "AL": "Albania", | |
| "AM": "Armenia", | |
| "AO": "Angola", | |
| "AR": "Argentina", |
##DSL
###Datatypes supported:
#####integer,float,string,boolean,long_integer,character
####DSL for Variables:
DSL: Datatype(name)
#####Example:
- integer(a);
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CODENAMES = { | |
| "\u0000": "NULL", | |
| "\u0001": "START OF HEADING", | |
| "\u0002": "TEXT, START OF", | |
| "\u0003": "TEXT, END OF", | |
| "\u0004": "TRANSMISSION, END OF", | |
| "\u0005": "ENQUIRY", | |
| "\u0006": "ACKNOWLEDGE", | |
| "\u0007": "BELL", | |
| "\u0008": "BACKSPACE", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*Transparent pattern placed over an image, like we see on the bootstrap homepage: http://twitter.github.com/bootstrap/index.html*/ | |
| div { | |
| width: 200px; | |
| height: 200px; | |
| display: block; | |
| position: relative; | |
| background: url(images/background-image.png); | |
| } |
