DEV Community

Cover image for [C++ CODE] Contains Close Nums
✨ thetealpickle πŸ“±
✨ thetealpickle πŸ“±

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. ~ πŸ’» πŸ’»

Top comments (0)