¿Esta es tu empresa?
valid parenthesis
Anónimo
stored the ascii values of entity and its partner in hashmap, stored the ascii value of first element in linked list, if the ascii value of the next entity is the partner value of first, remove first ascii value from linkedlist. else if if the ascii does not exist in hashmap and is not a partner value, parenthesis is not valid else if the ascii does exist in hashmap add it to linked list at the end if linked list is null it is a valid parenthesis.