6 kyu

[BF] Memory Limited : Print Last/First Chars (Using only 3 cells)

Description
Loading description...
Fundamentals
Algorithms
Strings
Puzzles
Restricted
  • Please sign in or sign up to leave a comment.
  • apneck Avatar

    These memory limited BF kata are just full of absolutely unreadable answers and I find that hilarious.

  • Quaternions Avatar

    Hey What WTH?? My code was working PERFECTLY* on EVERY BF interpreter I could find on the web (* including every specific case i.e. "A" --> "A" "Hello"--> "oH" "strings" --> "s") and and didn't contain more than 52 characters... But here for some reason, it keeps "timing out"!? (but executes perfectly fine on every bf interpreter, with instant result) ...This is very frustrating :/

    • Quaternions Avatar

      This comment has been hidden.

    • BreadMicrowave Avatar

      Dunno if you still care, but your code is timing out on single character inputs. For whatever reason, on codewars inputs default to 255. So for an input of a\0 you start with [97] [0] [255] and your code just keeps copying cell 3 to cell 2 cause it never hits the EOF marker.

  • FArekkusu Avatar

    Constantly getting an error assigninga server. Is this a problem on my side (though everyong stopped working after rewriting my wrong but working code and coming back to it) or site/server side?

    • Blind4Basics Avatar

      working correctly on my side.

    • Voile Avatar

      wrong but working

      You do realize that's a paradoxical statement, right?

    • FArekkusu Avatar

      I mean it was doing the wrong thing, but at least the program executed. Later I had to wait for 30+ sec just to execute ,..

    • Voile Avatar

      If the connection to CW is bad then it might take a long time before the code is run. But otherwise after the code is run it got (usually) 12 seconds to run before timing out.

  • Voile Avatar

    Approved ;-)

  • Blind4Basics Avatar

    150 chars? That's a lot, considering how you can do that. Maybe you could reduce it to 75? (that's the exact length of yours, currently (with extra spaces). I did it in 51)