Ad
  • Custom User Avatar

    Ah... "a sequence of only apostrophes [isn't valid]". I can exercise this constraint into my solution. Thanks :)

  • Custom User Avatar

    For this input:
    RdaPPuHQh.hqDUP'pwPI/;,/xgb??hqDUP'pwPI//sB'gmISoJE,vtttTxPDS,aHigIU,,..vtttTxPDS!?!SIexAyXprz ;;OhyFgnb'cC/:?!hqDUP'pwPI;RdaPPuHQh.!SIexAyXprz aXLHHhwU:sB'gmISoJE!,.hqDUP'pwPI.SIexAyXprz :aXLHHhwU/;:-SIexAyXprz!-! OhyFgnb'cC:-SEkXMJ.;:aHigIU?SIexAyXprz/-sB'gmISoJE,-, vtttTxPDS--aXLHHhwU:?!/SEkXMJ!//? aHigIU,:;:-'jxlpZOSdM;;sB'gmISoJE/.,hqDUP'pwPI aHigIU.xgb ;vtttTxPDS,SEkXMJ:?:SDAFdYqrk?SEkXMJ SDAFdYqrk/SEkXMJ;;/?xgb;?,SEkXMJ!:'jxlpZOSdM- /UCaIYcDkQ:;SDAFdYqrk ;SDAFdYqrk::UCaIYcDkQ- .UCaIYcDkQ-, RdaPPuHQh !'jxlpZOSdM.- ;sB'gmISoJE,OhyFgnb'cC,:;SEkXMJ;!;aXLHHhwU;? UCaIYcDkQ!,aHigIU/?RdaPPuHQh:;,,;aXLHHhwU..aXLHHhwU_OhyFgnb'cC? 'jxlpZOSdM,?:/,SDAFdYqrk -!-hqDUP'pwPI::/?SIexAyXprz-?'jxlpZOSdM?.;-RdaPPuHQh -SEkXMJ ;?:-RdaPPuHQh 'jxlpZOSdM;xgb:!? ,SEkXMJ-,/SDAFdYqrk/_;UCaIYcDkQ.aHigIU,!?OhyFgnb'cC !xgb_vtttTxPDS:;,sB'gmISoJE:-vtttTxPDS,/, !UCaIYcDkQ:;aHigIU;-.?'jxlpZOSdM,::'jxlpZOSdM'jxlpZOSdM-;//SDAFdYqrk!-! -SIexAyXprz- ;aHigIU.-/: SIexAyXprz?OhyFgnb'cC_ SEkXMJ-; --hqDUP'pwPI!: xgb;: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dM.?;SDAFdYqrk/hqDUP'pwPI-aHigIU?..aHigIU,SEkXMJ//?OhyFgnb'cC_SIexAyXprz -SDAFdYqrk:/;'jxlpZOSdM,?/aHigIU?--/'jxlpZOSdM:-RdaPPuHQh/,hqDUP'pwPI-'jxlpZOSdM?!!, UCaIYcDkQ?.SEkXMJ!; xgb-aHigIU:///aHigIU!,;;,SIexAyXprz_??aHigIU?. SDAFdYqrk;SIexAyXprz.///'jxlpZOSdM-;xgb/ /'jxlpZOSdM_ !xgb/:/-:UCaIYcDkQ./SIexAyXprz _;SEkXMJ/RdaPPuHQh;

    One possible output: ['ahigiu', "'jxlpzosdm", 'siexayxprz']

    I think my code is failing because it doesn't acknolwedge a word having a leading apostrophe. But does a leading apostrophe satisfy the description of what a word is in this kata, in particular contradicting the meaning of "containing"? On a similar vein, glancing at the other test cases, I do not believe tailing apostrophes are included in the word. I can probably fix my code to include leading apostrophes, but how many? 1? 2? n? And can someone help clarify the definition of a word in this kata?

  • Custom User Avatar

    I like that you simply spelled out the sequence A through Z and did the string[i] in z. I could see doing this in other problems of similar nature.