DEV Community

Cover image for [C++ CODE] Contains Close Nums

Posted on

[C++ CODE] Contains Close Nums

THE TEAL PICKLE CODING CHALLENGE!! Determine whether the array contains close nums. I solved this problem using bae (C++). TRY IT 👀

Check out my solution and share yours!! My solution has an O(n) runtime and uses O(n) additional memory. ~ 💻 💻

Discussion (0)