@ file : Suppress (" Same Parameter Value ", Ġ" Un necessary Variable ", Ġ" UNUSED _ VARIABLE ") Ċ Ċ package Ġproblems Ċ Ċ import Ġalgorithms . frequ ent Word sWith Mis matches Ċ Ċ /** Ċ Ġ* Ġ@ link : Ġhttps :// step ik . org / lesson / 2 4 0 2 2 1 / step / 9 ? unit = 2 1 2 5 6 7 Ċ Ġ* Ċ 1 . 8 ĠSome ĠHidden ĠMessages Ġare ĠMore ĠEl usive Ġthan ĠO thers Ċ Code ĠChallenge : ĠSolve Ġthe ĠF requ ent ĠWord s Ġwith ĠMis matches ĠProblem . Ċ Ċ Input : ĠA Ġstring ĠText Ġas Ġwell Ġas Ġintegers Ġk Ġand Ġd . Ġ( You Ġmay Ġassume Ġk Ġâī ¤ Ġ 1 2 Ġand Ġd Ġâī ¤ Ġ 3 .) Ċ Output : ĠAll Ġmost Ġfrequent Ġk - mers Ġwith Ġup Ġto Ġd Ġmis matches Ġin ĠText . Ċ Ċ Extra ĠDataset Ċ Ċ Debug ĠData sets Ċ Ċ Sample ĠInput : Ċ AC G TT GC AT G TC GC AT G AT GC AT G AG AG CT Ċ 4 Ġ 1 Ċ Ċ Sample ĠOutput : Ċ G AT G ĠAT GC ĠAT GT Ċ Ċ See Ġalso : Ċ step ik : Ġhttps :// step ik . org / lesson / 2 4 0 2 2 1 / step / 9 ? unit = 2 1 2 5 6 7 Ċ ros al ind : Ġhttp :// ros al ind . info / problems / ba 1 i / Ċ Ġ*/ Ċ Ċ fun Ġmain () Ġ{ ĊĠĠĠ Ġval Ġgenome 2 Ġ= Ġ" AC G TT GC AT G TC GC AT G AT GC AT G AG AG CT " ĊĠĠĠ Ġval Ġk mer Size 2 Ġ= Ġ 4 ĊĠĠĠ Ġval Ġmis matches 2 Ġ= Ġ 1 ĊĠĠĠ Ġ// Ġanswer Ġwas : ĠAT GC ĠAT GT ĠG AT G Ġ- Ġcorrect ! ĊĊĠĠĠ Ġval Ġexam Gen ome Ġ= Ġ" GT TC ACT CC G TA AG C CT CG TA AG C CT CT T GCC AC AC G TA AG C CT CT T GCC AC AC G TA AG C CT AC CC AG CT TC G TA AG C CT AC CC AG CT TC G TA AG C CT AC CC AG CT T CT T GCC AC AG T TC ACT CT AT TA AT G ACT T GCC AC AAC CC AG CT TC G TA AG C CT CG TA AG C CT CG TA AG C CT CT T GCC AC AT AT TA AT G ACT T GCC AC AAC CC AG CT TAC CC AG CT T GT TC ACT CT AT TA AT GA AC CC AG CT T GT TC ACT CC G TA AG C CT AC CC AG CT T CT T GCC AC AAC CC AG CT T CT T GCC AC AAC CC AG CT T CT T GCC AC ACT T GCC AC ACT T GCC AC AAC CC AG CT T CT T GCC AC AC G TA AG C CT T AT TA AT G AG T TC ACT C CT T GCC AC AC G TA AG C CT CT T GCC AC AC G TA AG C CT GT TC ACT CAC CC AG CT TT AT TA AT G AT AT TA AT G ACT T GCC AC AC G TA AG C CT AC CC AG CT TC G TA AG C CT T AT TA AT G ACT T GCC AC ACT T GCC AC AAC CC AG CT T CT T GCC AC ACT T GCC AC ACT T GCC AC ACT T GCC AC AC G TA AG C CT CT T GCC AC AC G TA AG C CT CT T GCC AC ACT T GCC AC AC G TA AG C CT CG TA AG C CT GT TC ACT CT AT TA AT G AT AT TA AT G AC G TA AG C CT CG TA AG C CT CT T GCC AC AT AT TA AT G ACT T GCC AC ACT T GCC AC AT AT TA AT G AT AT TA AT GA AC CC AG CT TAC CC AG CT TT AT TA AT G AG T TC ACT CC G TA AG C CT CG TA AG C CT CT T GCC AC AC G TA AG C CT CG TA AG C CT CG TA AG C CT AC CC AG CT TC G TA AG C CT CG TA AG C CT T AT TA AT G AG T TC ACT CT AT TA AT G AT AT TA AT GA " ĊĠĠĠ Ġval Ġexam k mer Size Ġ= Ġ 7 ĊĠĠĠ Ġval Ġexam Mis matches Ġ= Ġ 2 ĊĊĠĠĠ Ġval Ġg Ġ= Ġexam Gen ome ĊĠĠĠ Ġval Ġk Ġ= Ġexam k mer Size ĊĠĠĠ Ġval Ġm Ġ= Ġexam Mis matches ĊĊĠĠĠ Ġval Ġmatch List Ġ= Ġfrequent Word sWith Mis matches ( g , Ġk , Ġm ). sorted () ĊĠĠĠ Ġprintln (" quantity Ġ= Ġ${ match List . size }") Ġ Ġ// Ġstep Ġ 5 ĊĠĠĠ Ġfor Ġ( i Ġin Ġmatch List ) Ġ{ ĊĠĠĠĠĠĠĠ Ġprint ("$ i Ġ") ĊĠĠĠ Ġ} Ċ } ĊĊ