The "Run Code" judge is using wrong algorithm


  • -2
    H

    Among the answers, the expected answer sets the following answer for this palindrome:

    ["icahac","acciecajicggffa","jigigadiehjhageggb","dcfi","gjidccdjeijhadfefaje","iadhcigh","fiig","hjjcbdhjifciecc","cdbb","efbdbi","aggahcd","bafehbfj","dh","bjdihaagagcahchbj","dhicgecj","hehf","igbjifj","jejbghij","hfdhhbajbh","gdbdegb","jchhegjffbcgdd","bhddigdabedabjccd","bj","c","bjbiaidhceiiaifah","diceffhjbfhgedbjcaga","fhjbaefdce","ahhheggccagagiafhhac","eegfeefhgdccgbhaae","dbiedddhchia","eiafccefcggcehhgab","bjjjhjgggig","becchgbjiach","hibdgbe","gebdcghgbffgj","gfafaei","adccb","bbijehajaj","jajcajcdge","bejjebgbbhgiagidacg","gafhfcbicbahgehhej","fce","bfcjijifghgffeicijjd","gbbcf","cffigeadfceh","ideebbjjibfh","dfeidefah","e","ecbgbfedbhfg","dbbhjegb","dfcdhaaifij","gjfaaejeceifbhejgahg","hbdeigicjdacfccagbb","geecjaahabjcjd","cijeieiic","cddhhagghea","djg","dddbjcjgibccdcijc","bdbiaiiega","fbdacdegccfhfafi","heccaichjggj","gfaeiigajidd","cbjihebiiagghfiaghbe","dhbdhiacee","ebjefacbadcjgeheii","cficcigi","h","hidjcdhefdbhdcajggj","jiidadjb","jhdcffegf","aifjabejccgedbihb","hchdgd","ejegad","ehcebafifhajeb","hcbbdggiahh","biga","fiafeaj","bjeagbhjiehbbaeae","icccjhcbjcccgajigf","eabccb","gcbehejhgd","dcgifidadicba","ecfhgccgedjichh","cbffijjcfdbhdfi","ifii","jccfabgdiahdhc","j","abie","hdeebdhegjebaii","ha","jfahdgii","ifjbfbhge","fffbjbfdciffbcbhdge","cibeh","gbighajdjcbbid","ehi","dajfeiccce","djdjbigjcbjiiabcbgd","caedhgfa","idabceiaa","adej","ahifgdhgh","dfhajffcag","aefjhie","bhhgeaidhaidhhhddbf","bhcdcedhggc","djj","bafjdhfjfac","iej","jafge","cibdciihcifc","fbgjigjbgeicicjdhbj","dcfeih","dha","bbccjhfiaha","deghjj","fjgbjeefbhijcchii","hgffai","eidhchhefjhijciaihgb","hbchgjf","bb","cbadcgddb","bfifbfihgdaiiiaeddc","dihbjhi","hjcdd","bdibi","iejbgbiiji","bhebcjf","ejgfhj","idajegbji","aebgadjdahh","diffeegadhjf","ejgiecbajfbc","iaeei","hcgabbcbfdabj","eajbcgahagijediefgi","jjaecac","iecfigjdecb","fichhggjccgdihhgfib","jbhheihbhfbhddfij","jjccghec","fbhd","fbdei","fcfjic","cejgdfcachad","ai","gceffjgdeggi","cbihdjbdccbjjjadfa","abijac","hcdjjcbefahb","bjf","cjche","hhfdfeefb","hhi","ggffhbc","hehhiiajgdbfcadfh","iajgcgbagaicjgbhabfg","dffcdjbfdfbgjjdgcj","dbfjffaifbdgcbaag","iefdccjcebfhbcejf","dfjiaejdb","dabidagfge","jfcdagi","bjhg","gjahfihacd","aiicadddfeha","agcgahbjjdfgig","adfgdbbaaadfjffjjgch","cfhfhhfebbehc","cejifb","diabibieiigfichibj","ejgdbecchbijcch","bifeaidbafdbcfhd","dja","echibieebaidhjhjdj","hcecjicieacecj","egeadicdcjgi","hbgffacgfihfcdabib","idjbeifgaidbhjidhb","hbidcfahhaec","agfibicg","ffjfjjfehgi","eehcjejjcbjbhiga","gghciif","agaiacejjiagej","ighjdad","jbifihbgafjbejid","abjbeiaebddbbebg","ejajedahbagfda","fchbibi","gdbhajbbdcagegaghfc","f","fhjeeacggef","b","iidg","edgc","ag","de","giidf","iidfdebie","hgj","ibbbffibiggefg","hedffbbaiafjbbc","icgbcdcgbbhjjcc","jhhihceddfiac","iihedjdgciibdied","eghgef","fd","decahgbbijbbfi","ecadcdijfiifbe","ghdigbhcichjfcajd","jgj","ihbih","ghgjideicgdf","dcbefjhgbjgjhigeae","igibjh","idabeiidfehciahjdg","gcghjbjbdh","jhaech","jejabhffabec","dfbafedadjiacijge","dffibfacjddhhahi","giijdjdafeb","afigj","gheiccbhijdidjhad","fchfh","gcjiibfdfgej","accbdbeg","gdcfefcb","jccadbjhb","aighacicdb","gciadjbd","gabg","iibcfdhcjhjfcjgcij","gddedjcedjg","fdghecjhegjeebc","aabghcfie","ijjcihejdegiibcj","jchdgjfdgefieciefcd","deie","fcfhifj","ceh","jbeehiajjdcjhecchcb","giefchbifcacefdjh","ijbbic","jgbjcgciibg","ieagbifee","bgibe","cigcbhadaifbj","aefchcagfjehidcb"]

    Expected Answer:

    [[66,12],[191,15],[22,193],[86,22],[89,66],[120,193],[193,120],[47,197],[191,206],[207,191]]
    

    However the [120,193] and [193,120] shouldn't be together. ["b","bb"] and ["bb","b"]

    The problem specifies that there should be unique words, and they both create the word "bbb"


  • 0
    B

    No, the problem specifies that there should be unique pairs of indexes


  • 0
    L

    The question says unique input words, not unique concatenated words. Meaning you wanna have input words as ['bbb', 'bbb'] as the input


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.