DEV Community

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

Posted on

1

[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)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay