Company: Coderbyte
Difficulty: medium
Array Challenge Problem body { font-family: Arial, sans-serif; line-height: 1.6; margin: 20px; } .problem-container { max-width: 900px; margin: auto; padding: 20px; border: 1px solid #ddd; border-radius: 8px; background: #f9f9f9; } h1, h3 { color: #333; } pre { background: #f4f4f4; padding: 10px; border: 1px solid #ddd; border-radius: 5px; overflow-x: auto; } ul { margin: 0; padding-left: 20px; } .example { margin-top: 20px; } .example .input, .example .output { margin-bottom: 10px; } Array Challenge Have the function ArrayChallenge(strArr) take the strArr parameter being passed, which will be an array of two strings containing only the characters {a, b, c} . Your task is to return the length of the longest common subsequence common to both strings. A common subsequence for two strings does not require each character to occupy consecutive positions within the original strings. For example: if strArr is [\"abcabb\", \"bacb\"], then your program should return 3 because the longest common