Skip to content

Instantly share code, notes, and snippets.

View chyanurag's full-sized avatar
💭
I may be slow to respond.

Anurag chyanurag

💭
I may be slow to respond.
View GitHub Profile
@chyanurag
chyanurag / main.cpp
Created July 21, 2025 10:58
Collatz conjecture using only c++ templates
#include <iostream>
template <int N>
struct collatz;
template <>
struct collatz<1> {
static const int ans = 1;
};