+ 1
Where is the problem ?!
I can’t find the problem I want to get a method that find the longest incremental chain list https://code.sololearn.com/catDSm5NrlKu/?ref=app
1 ответ
+ 1
Rine
1)you can't declare a method inside the main method. Also, you forgot import the required packages like java.util.List, java.util.ArrayList,etc.
2)You are using an array/list which you haven't declared, that is Seq. You need to declare it first or change the name to a list/array you have declared earlier.
3)you didn't close the class bracket }
https://code.sololearn.com/cRh2Mv77anfW/?ref=app