Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Andy Norman
    @andynormancx
    No one wants to upset a ginger
    Brian Norman
    @gingemonster
    Lol
    Brian Norman
    @gingemonster
    either im being slow today or part one has a lot of things to consider
    Andy Norman
    @andynormancx
    I haven't actually tried coding it, but it seemed like it might be more straightforward than it reads
    I guess I'll find out, when I can be arsed to start coding
    Brian Norman
    @gingemonster
    from what Im finding there are some many examples given because each one tests a new thing you probably missed. So far I pass the first 3 :-(
    and my IF logic is getting messy
    Iain M Norman
    @IainMNorman
    Feels like I wrote too much stuff that looks repetative.
    :)
    Andy Norman
    @andynormancx
    oh goodie
    Brian Norman
    @gingemonster
    me to sigh
    been here 1.5 hours still not there
    Andy Norman
    @andynormancx
    my first attempt doesn't even work with the first example 401 != 31
    Iain M Norman
    @IainMNorman
    Yay!
    image.png
    Andy Norman
    @andynormancx
    a recursion too far...
    Iain M Norman
    @IainMNorman
    Only if I turn my output on.
    May have exceeded the output buffer on the console?
    Or summat.
    Andy Norman
    @andynormancx
    I wouldn't expect that exception for that, tis a pretty specific exception. It is probably just that your output code is using up the rest of the stack space that has nearly been exhausted in your recursion
    function scoped variables use stack space, so if you were close to the limit already, all you need to do is start storing something in a function level variable in the chain to push you over the limit
    N.B. I am making assumptions about how .net core works, based on years old knowledge of old .net ;)
    Iain M Norman
    @IainMNorman
    Hmm part2 is a weekend optimise task.
    Part 1 took me two hours. Mainly trying to hold everything in the process in my head and get it straight.
    I have a part 2 solution that will take a few hours :) Tempted to leave it.
    :)
    Brian Norman
    @gingemonster
    bored now
    thank F I got part one
    Jonathan George
    @jongeorge1
    Oh good. Sounds like something to look forward to.
    Iain M Norman
    @IainMNorman
    My long running process finished with the correct answer.
    I know it's correct cos I already optimised whilst it was running :)
    Part2 358ms reported by measure-command on a release build.
    Iain M Norman
    @IainMNorman
    Un-optimised it took 2 hours.
    Andy Norman
    @andynormancx
    I need to go and throw away my part 1 code and start again
    Jonathan George
    @jongeorge1
    ugh. We have now hit the point where it becomes difficult to keep up due to lack of time :(
    Iain M Norman
    @IainMNorman
    Aye.
    Done now.
    Iain M Norman
    @IainMNorman
    I'm guessing @gingemonster is busy Sunday morning.
    Jonathan George
    @jongeorge1
    So yesterday's p1 done.
    and that might be all the free time i have until tomorrow :(
    At least p2 doesn't look too bad.
    Iain M Norman
    @IainMNorman
    p2 is quick if you see it.
    Like 5 mins for you Jon.
    Iain M Norman
    @IainMNorman
    I notice I am more motivated this year because I am not behind.
    Or less de-motivated.
    Andy Norman
    @andynormancx
    I'm one day behind and that has already put a damper on me doing today
    Brian Norman
    @gingemonster
    Managed to get 3/4 through 1 but didn’t finish yet
    Iain M Norman
    @IainMNorman
    I need to refine my solution to yesterday.
    Boom boom!
    Jonathan George
    @jongeorge1
    FML