1 line Java solution, faster than 100%, less memory than 100%, easy to understand
\nclass Solution\n{\n\tpublic boolean judgePoint24(int[] nums) {\n\t\treturn Arrays.equals(nums, new int[] { 4, 1, 8, 7 }) || Arrays.equals(nums, new int[] { 1,
```\nclass Solution\n{\n\tpublic boolean judgePoint24(int[] nums) {\n\t\treturn Arrays.equals(nums, new int[] { 4, 1, 8, 7 }) || Arrays.equals(nums, new int[] { 1, 3, 4, 6 }) || Arrays.equals(nums, new int[] { 1, 3, 2, 6 }) || Arrays.equals(nums, new int[] { 1, 4, 6, 1 }) || Arrays.equals(nums, new int[] { 1, 7, 4, 5 }) || Arrays.equals(nums, new int[] { 1, 8, 2, 5 }) || Arrays.equals(nums, new int[] { 1, 8, 7, 3 }) || Arrays.equals(nums, new int[] { 1, 9, 1, 2 }) || Arrays.equals(nums, new int[] { 2, 1, 4, 4 }) || Arrays.equals(nums, new int[] { 2, 4, 3, 4 }) || Arrays.equals(nums, new int[] { 2, 4, 4, 6 }) || Arrays.equals(nums, new int[] { 2, 5, 1, 6 }) || Arrays.equals(nums, new int[] { 2, 7, 4, 4 }) || Arrays.equals(nums, new int[] { 2, 8, 3, 7 }) || Arrays.equals(nums, new int[] { 3, 4, 2, 1 }) || Arrays.equals(nums, new int[] { 3, 5, 1, 1 }) || Arrays.equals(nums, new int[] { 3, 5, 9, 9 }) || Arrays.equals(nums, new int[] { 3, 7, 4, 2 }) || Arrays.equals(nums, new int[] { 3, 8, 4, 5 }) || Arrays.equals(nums, new int[] { 3, 9, 7, 7 }) || Arrays.equals(nums, new int[] { 4, 7, 8, 1 }) || Arrays.equals(nums, new int[] { 4, 7, 9, 9 }) || Arrays.equals(nums, new int[] { 5, 1, 9, 5 }) || Arrays.equals(nums, new int[] { 5, 4, 5, 7 }) || Arrays.equals(nums, new int[] { 5, 5, 8, 4 }) || Arrays.equals(nums, new int[] { 5, 9, 5, 1 }) || Arrays.equals(nums, new int[] { 5, 9, 5, 5 }) || Arrays.equals(nums, new int[] { 6, 1, 1, 3 }) || Arrays.equals(nums, new int[] { 6, 1, 4, 7 }) || Arrays.equals(nums, new int[] { 7, 1, 1, 3 }) || Arrays.equals(nums, new int[] { 7, 2, 6, 6 }) || Arrays.equals(nums, new int[] { 7, 4, 1, 7 }) || Arrays.equals(nums, new int[] { 7, 4, 1, 9 }) || Arrays.equals(nums, new int[] { 7, 5, 3, 4 }) || Arrays.equals(nums, new int[] { 7, 6, 7, 5 }) || Arrays.equals(nums, new int[] { 7, 9, 3, 7 }) || Arrays.equals(nums, new int[] { 8, 1, 6, 6 }) || Arrays.equals(nums, new int[] { 8, 2, 1, 1 }) || Arrays.equals(nums, new int[] { 8, 4, 5, 5 }) || Arrays.equals(nums, new int[] { 8, 5, 4, 8 }) || Arrays.equals(nums, new int[] { 8, 6, 5, 8 }) || Arrays.equals(nums, new int[] { 8, 6, 6, 8 }) || Arrays.equals(nums, new int[] { 9, 1, 2, 7 }) || Arrays.equals(nums, new int[] { 9, 4, 1, 2 }) || Arrays.equals(nums, new int[] { 9, 4, 8, 5 }) || Arrays.equals(nums, new int[] { 9, 5, 1, 3 }) || Arrays.equals(nums, new int[] { 9, 6, 2, 2 }) || Arrays.equals(nums, new int[] { 9, 7, 6, 6 }) || Arrays.equals(nums, new int[] { 9, 9, 7, 4 }) || Arrays.equals(nums, new int[] { 1, 1, 6, 9 }) || Arrays.equals(nums, new int[] { 1, 6, 1, 9 }) || Arrays.equals(nums, new int[] { 6, 1, 1, 9 }) || Arrays.equals(nums, new int[] { 1, 1, 9, 6 }) || Arrays.equals(nums, new int[] { 1, 6, 9, 1 }) || Arrays.equals(nums, new int[] { 6, 1, 9, 1 }) || Arrays.equals(nums, new int[] { 1, 9, 1, 6 }) || Arrays.equals(nums, new int[] { 1, 9, 6, 1 }) || Arrays.equals(nums, new int[] { 6, 9, 1, 1 }) || Arrays.equals(nums, new int[] { 9, 1, 1, 6 }) || Arrays.equals(nums, new int[] { 9, 1, 6, 1 }) || Arrays.equals(nums, new int[] { 9, 6, 1, 1 }) || Arrays.equals(nums, new int[] { 3, 3, 7, 7 }) || Arrays.equals(nums, new int[] { 1, 5, 5, 5 }) || Arrays.equals(nums, new int[] { 3, 3, 8, 8 });\n\t}\n}\n```
[]