Replies to message #5,547

  • 🔧 Chat is under maintenance.
    🧊 New server is in an office waiting on a mexican.
DavidS877

Programming thread

Sadly, your code runs in O(n) time, to make it run in O(1) time you should change it to instead just use a for loop from 0 to MAXINT(looks like...
ADHD Mate

Programming thread

That's a perfect case for C++ constexpr and templates. template<typename T> requires(std::is_integral_v<T>) class TableOfEvenNumbers { public...
Uncle Ted's Cabin

Programming thread

Small brain: Use modulo Medium brain: Write a recursive function Big brain: Create a giant if/else chain or switch statement Galaxy brain: Use...
Back
Top Bottom