Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I have issue with random test cases
    For input ("37029621425826148890202295535336199295530115603520770726250861330995061980145067077292042106207761891310681570073528028172251685457531059208559310382871958101950008369485335501966352636763446010535531108874361019896123928020069810922430890386613739006901910445774198630266458887634464311862397434626441051119266938809333549906243113989774346258937250651561791788903105307188929166617166368947674327124339207572596713751578691321973455280826211371594640453775504696408630946224346525095714902637422004943336654371617638305621707696899296972756194982840066831608009703547972243261771597172273954030218985139018740399626708605580709499532490428757779563256381586197455614749412053747850966280733870936589491594675562017586968840181965658547207557706615921384603658978920748508790169701072886710940677100761063503843293149386547248593586325444055343590478702748723046888466397591126821615812935916500045220667375562331425829892401095365804394231641465355142315599261978039232234490557122421730681591734154383018967549769979586120543123552065875465733894127824420262432068005193085739600216804418121843140476856979255807570237174353241064229528876663902879754166260730577558470335151532249477849774137651857129326308773401132004301590480520677798250967210239176020004778045494242968539696032776733459990668820716007421374391386743011944763207092307926282564487027448843487477273449675355386008349458322682560957053074779163521706483996198905601358092628307355803302614893894355673468203495215702786558837110105458846319135339697489785747922420042148496857833373690935688999043629889714703732797774176348219948231684234046013122324980503675453184828345030697573681649479396822910222162275741627741200487703975003143074895", false)

    I found that result(m) should be the same as input(n), but I got an error that m should be n + 2. Is it correct?

  • Custom User Avatar

    Class and method names are different in solution and test parts of the task.

    Test 3 doesn't have root node, but expects to see it in the result.

  • Custom User Avatar

    I use Java.
    The issue was with example test cases.
    Thank you for answer.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I had an issue with function maxp.
    for n = 5, I have a sequence p: 5, 3, 11, 3, 23 and max of them is 23. But your test case expect to get value 47.
    47 is a max value of p sequence, when it have only unique values.
    May be you should add this information to description.

  • Custom User Avatar

    Test cases are not optimal