Click here to see the full article post
This is picky, but idiomatic C++ uses static_cast<int> instead of C style cast (int) as seen in approach 3.
@sean46 Thanks for the suggestion. Made the change :)
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.