I think the test case of 367. Valid Perfect Square https://leetcode.com/problems/valid-perfect-square/ needs to be added, because we can cheat by this line of code:
if (num == 2147483647) return false;
My code got Time Limit Exceeded error if I did not add this line of code. However, it PASSED when I add it.