DEV Community

Discussion on: 6-10PM challenge problem #002

Collapse
 
akbhairwal profile image
akbhairwal

you could optimize this solution for O(n)

Collapse
 
mohamedaminedahwathi profile image
Mohamed amin Dahwathi

hello,
i am new but it is O(n) right ? without the last loop ofc