Skip to content

Instantly share code, notes, and snippets.

View SamuelChann's full-sized avatar
🐧
I’m a penguin

Kimechira SamuelChann

🐧
I’m a penguin
  • China
View GitHub Profile
@unixzii
unixzii / trapping_rain_water_tmp.cc
Last active March 30, 2024 07:28
A "Trapping Rain Water" implementation using C++ template metaprogramming.
template <int, typename>
struct List;
struct Nil {
template <int _NValue>
using Append = List<_NValue, Nil>;
};
template <int _Value, typename _Next>
struct List {