Easy java to understand beats 100%
\nclass Solution {\n    public List<Integer> numOfBurgers(int t, int c) {\n        List<Integer> ret = new ArrayList<>();\n        if(t%2!=0||((t/2)>2*c)||c>(t/
```\nclass Solution {\n    public List<Integer> numOfBurgers(int t, int c) {\n        List<Integer> ret = new ArrayList<>();\n        if(t%2!=0||((t/2)>2*c)||c>(t/2))return ret;\n        ret.add((t/2-c));\n        ret.add((2*c-t/2));\n        return ret;\n    }\n}\n```\n![image](https://assets.leetcode.com/users/vshnlucky/image_1575176370.png)\n
['Java']