Back to problems

Simple TypeScript Program

Algorithm · Snowflake · Easy

String Lengths Easy · Topics · Company Tags · Hints You are given an array of strings. Build and return a new array where each entry is the length of the corresponding input string, preserving the original ordering. Example 1: Explanation: The empty string has length 0, "dog" has length 3, and "fish" has length 4. Example 2: Example 3: Constraints: 0 <= words.length <= 50 0 <= words[i].length <= 200

Checking your access…