Ad
Code
Diff
  • def lol():
        return 2
    • def lol():
    • v=0
    • for x in range(100000<<10000):
    • v+=100000<<10000**1
    • return 2
Code
Diff
  • export const maxNumber = (arr: number[]): number => Math.max(...arr);
    • export function maxNumber(arr: number[]): number {
    • let max = 0;
    • for (let item of arr) {
    • if (item > max) { max = item; }
    • }
    • return max;
    • }
    • export const maxNumber = (arr: number[]): number => Math.max(...arr);