Question: Find regular bracket subsequences Cost: 5 | Solved: 0 Memory limit: 2 5 6 Mb Time limit: 1 0 0 0 ms Input file: stdin
Find regular bracket subsequences
Cost: Solved:
Memory limit: Mb
Time limit: ms
Input file: stdin
Output file: stdout Task:
You are given a set of strings separated with line feed characters.
Find all their regular bracket subsequences.
A regular bracket sequence is a bracket sequence defined by the following rules:
an empty string is a regular bracket sequence;
Let be a regular bracket sequence, then S and are also regular bracket sequences;
Let and be regular bracket sequences, then is also a regular bracket sequence;
Input:
A set of strings separated with line feed characters.
Output:
All the longest correct substrings in the order in which they appear in the text, separating each with a line feed character.
Use only C
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
