Skip to content

Instantly share code, notes, and snippets.

View technoadnan's full-sized avatar
💘
Reoccur

Adnan technoadnan

💘
Reoccur
View GitHub Profile
@technoadnan
technoadnan / makefile
Created February 12, 2026 21:34
Makefile for multiple cpp and hpp
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
@technoadnan
technoadnan / find_celebrity.py
Created January 26, 2024 02:21
find_celebrity
class Node:
def __init__(self, data) -> None:
self.data = data
self.ref = None
class Stack():
def __init__(self) -> None:
self.top = None
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
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)