Skip to content

Instantly share code, notes, and snippets.

View Muaath5's full-sized avatar

Muaath Alqarni Muaath5

View GitHub Profile
Muaath5 /
Last active September 20, 2023 03:39
Customizable Segment Tree Template in an STD-similar way

Muaath's Segment Tree Template

This is a customizable segment tree class that supports lazy propagation, in an STD-similar way.

Version: 2.2

Last commit: Fix styling

What's new?

  • Fixing the lazy update
  • Optimizations for lazy update
Muaath5 / SudokuSolver.cpp
Created February 3, 2022 21:20
C++ console app that solves sudoku 9x9 via Backtracking (Recursion)
// Copyright 2022 - Muaath Alqarni
#include <iostream>
#include <vector>
#define endl '\n';
#define fast std::ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
using std::cin;
using std::cout;
Muaath5 / console_chess.cpp
Created January 22, 2022 14:53
C++ chess game in console, not completed needs kings checks
// Copyright 2022
// Written by: mdubaisi, Muaath_5
// A C++ console app to play chess with a friend offline
#include <bits/stdc++.h>
#define endl '\n'
#define E8 Pos('E', 8)
#define E1 Pos('E', 1)
Muaath5 / TgPollsBot.cs
Last active June 6, 2021 17:04
Simple Telegram polls bot using long-polling (wiki) in C#
using System;
using System.Threading.Tasks;
using Telegram.Bot;
using Telegram.Bot.Args;
using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
namespace ConsoleTgBot
static class Program