DEV Community

Discussion on: Solving the problem: Find the odd int

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.