Weak test cases
The below solution gives 100% result\nbut will fail for many cases like\n{"test.emailalex@leetcode.com","test.e.mailbob.cathy@leetcode.com","testemail+david@lee
The below solution gives 100% result\nbut will fail for many cases like\n{"test.emailalex@leetcode.com","test.e.mailbob.cathy@leetcode.com","testemail+david@lee.tcode.com"}\nExpected output : 3\nOutput : 2\n```\n    public int numUniqueEmails(String[] emails) {\n        Set<String> seen = new HashSet();\n        for (String email: emails) {\n            int i = email.indexOf(\'@\');\n            String rest = email.substring(i);\n            seen.add(rest);\n        }\n        return seen.size();\n    }\n```
[]