C++ template metaprogramming (that team was into functional programming and compile time computations). Standard, find nth Fibonacci number using recursive templates.
Anonymous
template struct fibonacci { using type = unsigned long int; static constexpr type value = fibonacci::value + fibonacci::value; }; template struct fibonacci { using type = unsigned long int; static constexpr type value = 0; }; template struct fibonacci { using type = unsigned long int; static constexpr type value = 1; }; int main() { return fibonacci::value; }
Check out your Company Bowl for anonymous work chats.