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
| CXX := g++ | |
| CXXFLAGS := -std=c++17 -Wall -Wextra -O2 | |
| TARGET := Main.exe | |
| # DON'T CHANGE ANYTHING EXCEPT MODULES | |
| # write the file name in the MODULES | |
| # for example we have main.cpp and main.hpp write main only | |
| # if we have multiple files such as main.cpp and hpp and app.cpp and hpp | |
| # it will be, MODULES := main app | |
| # make sure you give a space in between |
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
| class Node: | |
| def __init__(self, data) -> None: | |
| self.data = data | |
| self.ref = None | |
| class Stack(): | |
| def __init__(self) -> None: | |
| self.top = None |
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
| import random | |
| def main(): | |
| level = get_level() | |
| total_rounds = 10 | |
| points = 0 | |
| for current_round in range(total_rounds): | |
| x = generate_integer(level) | |
| y = generate_integer(level) | |
| original_answer = x + y |
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
| import random | |
| def main(): | |
| level = get_level() | |
| total_rounds = 10 | |
| points = 0 | |
| retries = 0 | |
| for current_round in range(total_rounds): | |
| if retries == 0: | |
| x = generate_integer(level) | |
| y = generate_integer(level) |