Ad
  • Custom User Avatar
  • Custom User Avatar

    just completed this; it was very fun! thank you

  • Custom User Avatar

    sorry guys i dont undestand. I am given a query function,but i dont know N at all. where do i get N from?
    Kind regards
    Marco

  • Custom User Avatar

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

  • Custom User Avatar

    Would it be interesting to add a batch of relatively small random tests that also output N on error, just to give users an idea in which phase of their algorithm their mistake is? Or is the fact this Query is a total black box part of the difficulty level and challenge of this kata?

  • Custom User Avatar

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

  • Custom User Avatar

    much better now

  • Custom User Avatar

    I've added smaller tests

  • Custom User Avatar

    nvm, I probably made a mistake in calculations

  • Custom User Avatar

    Integer precision should be perfect up to about 4000 digits, which calculations in my kata shouldn't exceed. Maybe you're accidentally using floats somewhere? That's strange, if you're not

  • Custom User Avatar

    I don't understand Python, I thought integer precision was infinite:

    698119055247942737373149623616118117019566513095661456257350274095685098756063477983242259957969120591773408829420243380792493576774337559143462333590192584413892551501066155597312352504894263922770203466862879024279844135296619832656671710831073567753660810704098296342723363668027324775849174352253474130312894352905519149806994824156361734715060967720285505284843589744663709933234188407344498510804270443362861863104298924076199109455882554489258818027306847716808148041515662957918851262460403370100247551656004146629952786541529740509966496902705513094452371188199142343915960826853605824416387371030628015059402893670790803222188713159591639181740058821989597693098749164225338160043519296450217870006566221896950544460331089966816082299916458678748757076954478433376429942344570816363234582459578828963018426946587894286422967492769189934352550456802793648810310100707946472935957304708820896065305729252362493239289587009855444381476543779685515980112324282434272329383078022065010156672628008216029714419216039668031081651633002654696870243416162007629672149594040354047636584852976664676912626979795175509754220184425749242184389213472785938542804975167582378053124924463641500757789471845548274999355110515596758250863909948493637300273698316515232531499208896899559289105491050799814297989807431359989833797135472962378003624556596720066584308350550475406149321277460505668493197107068670797334630895445020608426732285954571017104579076327124133675517728179886605740672024571355359263699288427239058474303348884537444223249500485004160197873494479949351201104970064737454270763917984405437081864087636708345906328965144955151718463933111743955988107607910504571118377535531346284706457234515306048102668938474078571815414070385612024810700448969042997715020221794687673659983494226665364808999615742664856304136550622457354577938878942984151606776434814181728229633411216455352605859752518867347193810087251674193479713008180862483537330615336440895261086770559650497132894137625846261764320752783785256040385195303394441041545501812635438207851623444295068104887687712728123130276424059488745322382744947914903913602671041888873137212629793756135553325067770678418719005061739349475711640153442228883994416335459321349396996100193746062713348555089101002325644893179136573727405114032885553814763518602266035920381364764309345615133172664129729161713041962435354572196617000478013628956027473428088791606115556645575411604588856165868230626248386427736044912472004750318166429046316315512427210971555289354074856084779203256201456938845142467587106926262400241700113885588372990114720652721651893217578221945354887409293419194374735355103865105667758661452343108391943747184550221613994885765573050911559501826818884159231642437450333836901211045302779828228320746782326144205455807103148403823518632871682764548986831476299816575575463435720776676224399463609587364545219179101974259224565092803366302423434163279318070175548910518930770848702288938136529046238838641051261526539963089752080074983429328907034809250473848616867633417617865051888759595208719016050965453596278168309331257293609075462926755449135037590441992505379578430994997847766889134654677231462496100770920879937150897018065154562383724784912030498816000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 
    
    should equal 
    
    698119055247942737373149623616118117019566513095661456257350274095685098756063477983242259957969120591773408829420243380792493576774337559143462333590192584413892551501066155597312352504894263922770203466862879024279844135296619832656671710831073567753660810704098296342723363668027324775849174352253474130312894352905519149806994824156361734715060967720285505284843589744663709933234188407344498510804270443362861863104298924076199109455882554489258818027306847716808148041515662957918851262460403370100247551656004146629952786541529740509966496902705513094452371188199142343915960826853605824416387371030628015059402893670790803222188713159591639181740058821989597693098749164225338160043519296450217870006566221896950544460331089966816082299916458678748757076954478433376429942344570816363234582459578828963018426946587894286422967492769189934352550456802793648810310100707946472935957304708820896065305729252362493239289587009855444381476543779685515980112324282434272329383078022065010156672628008216029714419216039668031081651633002654696870243416162007629672149594040354047636584852976664676912626979795175509754220184425749242184389213472785938542804975167582378053124924463641500757789471845548274999355110515596758250863909948493637300273698316515232531499208896899559289105491050799814297989807431359989833797135472962378003624556596720066584308350550475406149321277460505668493197107068670797334630895445020608426732285954571017104579076327124133675517728179886605740672024571355359263699288427239058474303348884537444223249500485004160197873494479949351201104970064737454270763917984405437081864087636708345906328965144955151718463933111743955988107607910504571118377535531346284706457234515306048102668938474078571815414070385612024810700448969042997715020221794687673659983494226665364808999615742664856304136550622457354577938878942984151606776434814181728229633411216455352605859752518867347193810087251674193479713008180862483537330615336440895261086770559650497132894137625846261764320752783785256040385195303394441041545501812635438207851623444295068104887687712728123130276424059488745322382744947914903913602671041888873137212629793756135553325067770678418719005061739349475711640153442228883994416335459321349396996100193746062713348555089101002325644893179136573727405114032885553814763518602266035920381364764309345615133172664129729161713041962435354572196617000478013628956027473428088791606115556645575411604588856165868230626248386427736044912472004750318166429046316315512427210971555289354074856084779203256201456938845142467587106926262400241700113885588372990114720652721651893217578221945354887409293419194374735355103865105667758661452343108391943747184550221613994885765573050911559501826818884159231642437450333836901211045302779828228320746782326144205455807103148403823518632871682764548986831476299816575575463435720776676224399463609587364545219179101974259224565092803366302423434163279318070175548910518930770848702288938136529046238838641051261526539963089752080074983429328907034809250473848616867633417617865051888759595208719016050965453596278168309331257293609075462926755449135037590441992505379578430994997847766889134654677231462496100770920879937150897018065154562383724782390302102246753330414141433590808716474896686690211413251309222128273806624178520869486959687365398988375808620363776
    
  • Custom User Avatar

    And random tests of smaller numbers first too. Massive numbers are basically undebuggable.

  • Custom User Avatar

    Random tests are horrible. No meaningful error output, just one big blob of tests. Split these tests into batches and give some proper error feedback.

  • Custom User Avatar
  • Custom User Avatar

    ok, who knows if it's impossible to cheat on this kata but it's definitely a lot more difficult now

  • Loading more items...