Oracle, Recently Asked Online Assessments in 04 Dec, 2026 | Code Bracket Validator

Oracle · Question · Posted Apr 2026

Question: Code Bracket Validator Problem Statement: You are given an array of strings, where each string contains only the characters '{', '}', '(', ')', '[', and ']'. For each string, determine if the string is valid. A string is valid if: Every opening bracket has a matching closing bracket of the same type. Brackets close in the correct order. The function isValidBrackets will take one input: string queries[q]: the string queries The function should return an array of strings where ...

The full answer & interview discussion are available to premium members.

Log in Create a free account