Lu1203_160320_ngol

easy
LU1203_160320_NGOL 
                               

Input Format

ass discussed in class

Output Format

ass discussed in class

Constraints

ass discussed in class

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
9
1 3 2 4 8 6 5 9 1
Output
-1 -1 3 -1 -1 8 6 -1 9
Previous
F1201-lecture1-180320-bfs-for-a-graphs
Next
Lu1203_160320_nsor

Related Questions