Skip to content

Instantly share code, notes, and snippets.

View Muaath5's full-sized avatar
🎯
Focusing

Muaath Alqarni Muaath5

🎯
Focusing
View GitHub Profile
@WindAzure
WindAzure / Xiangqi.cpp
Last active January 23, 2022 14:08
UVa 1589
#include <algorithm>
#include <stdio.h>
#include <string.h>
#include <vector>
using namespace std;
enum ChessBoardState
{
Free,
@kartikkukreja
kartikkukreja / Segment tree template.cpp
Last active December 13, 2022 12:02
Segment tree template
// T is the type of input array elements
// V is the type of required aggregate statistic
template<class T, class V>
class SegmentTree {
SegmentTreeNode* nodes;
int N;
public:
SegmentTree(T arr[], int N) {
this->N = N;