DEV Community

Cover image for Solving the problem: Find the odd int

Solving the problem: Find the odd int

Jade Doucet on October 13, 2019

In this post, I will be going over my solution for the problem "Find the odd int", which could be a potential interview question! So, giv...
Collapse
 
miniscruff profile image
miniscruff

Well written.

Small tidbit, you can break or simply return num inside the for loop on line 39. No need to keep checking once you got one.

Collapse
 
jadejdoucet profile image
Jade Doucet

Ah, thank you! I will take that into consideration next time.