Java - this question should be under easy
\nclass Solution {\n    public List<Integer> numOfBurgers(int tomatoSlices, int cheeseSlices) {\n        List<Integer> res = new ArrayList<>();\n        if(toma
```\nclass Solution {\n    public List<Integer> numOfBurgers(int tomatoSlices, int cheeseSlices) {\n        List<Integer> res = new ArrayList<>();\n        if(tomatoSlices % 2 == 1){\n            return res;\n        }\n\n        int smallCount = cheeseSlices*2;\n        int extra = tomatoSlices - smallCount;\n        if(extra >= 0) {\n            int jumboCount = extra / 2;\n\n            if(cheeseSlices >= jumboCount) {\n                res.add(jumboCount);\n                res.add(cheeseSlices - jumboCount);\n            }\n        }\n        return res;\n    }\n}\n```
[]