leetcode

Solution to some Leetcode problems written in C++
git clone git://git.dimitrijedobrota.com/leetcode.git
Log | Files | Refs | README | LICENSE

2621.js (141B)


      1 /**
      2  * @param {number} millis
      3  */
      4 
      5 async function sleep(millis) {
      6   return new Promise(resolve => {
      7     setTimeout(resolve, millis);
      8   });
      9 }