even using stupid solutions can get accept ?
Just getting accept ,or find effective solutions to get accept , which one is best ???
There is some limitation on the judge side, so unfortunately doing a simple linear search will get Accepted too. Please see this excellent answer by @loick to understand why: https://oj.leetcode.com/discuss/1284/i-think-test-cases-in-this-problem-are-too-weak