One Liner | Time O(1) | Docs
Approach\n Describe your approach to solving the problem. \nTime repeats every 24 hours\n\nTotal time  = arrivalTime + delayedTime\n\nFor example : Total time =
# Approach\n<!-- Describe your approach to solving the problem. -->\nTime repeats every 24 hours\n\nTotal time  = `arrivalTime` + `delayedTime`\n\nFor example : Total time = 20 + 15 = 35\nSo, we need the residual of the division over 24\n\n35 % 24 = 11\n\n### More Examples:\n1 % 24 = 1\n2 % 24 = 2\n23 % 24 = 23\n24 % 24 = 0\n25 % 24 = 1\n30 % 24 = 6\n\n# Complexity\n- Time complexity: `O(1)`\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:  `O(1)`\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n\n## 1) TypeScript\n\n```TypeScript\nfunction findDelayedArrivalTime(arrivalTime: number, delayedTime: number): number {\n    return (arrivalTime+delayedTime)%24\n};\n```\n\n## 2) JavaScript\n\n```JavaScript\nfunction findDelayedArrivalTime(arrivalTime, delayedTime) {\n    return (arrivalTime+delayedTime)%24\n};\n```\n\n\n\n\n\n
['TypeScript', 'JavaScript']