easy to understand JS
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\n/**\n * @param {number[]} students\n * @param {number[]} sandwiches\n * @return {number}\n */\nvar countStudents = function(std, sdw) {\n    let unable=0\n    while(std.length){\n        if(std[0]==sdw[0]){\n            std.shift()\n            sdw.shift()\n            unable=0\n        }else{\n            std.push(std.shift())\n            unable++\n            if(unable==std.length) break;\n        }\n    }\n    return std.length\n};\n```
['JavaScript']