$2 Testing 1-2-3 Description: Your team is writing a fancy new text editor and you've been tasked with implementing the line numbering. Write a function which takes a list of strings and returns each line prepended by the correct number. The numbering starts at 1. The format is n: string. Notice the colon and space in between. Examples: number([]) // => [] number(["a", "b", "c"]) // => ["1: a", "2: b", "3: c"] S.. 2022. 3. 10. Highest and Lowest Description: In this little assignment you are given a string of space separated numbers, and have to return the highest and lowest number. Examples highAndLow("1 2 3 4 5"); // return "5 1" highAndLow("1 2 -3 4 5"); // return "5 -3" highAndLow("1 9 3 4 -5"); // return "9 -5" Notes All numbers are valid Int32, no need to validate them. There will always be at least one number in the input string... 2022. 3. 8. 이전 1 다음