• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
oldccoder Avatar
Name:C.H. Erry
Clan:CSchool
Member Since:Nov 2014
Last Seen:Jul 2015
Profiles:
    Following:10
    Followers:13
    Allies:9
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (288)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • makidelcon
      • commented on "A Simplistic TCP Finite State Machine (FSM)" kata
      • 28 days ago

      True, did not noticed that, thank you, it worked.

    • Custom User Avatar
      • trashy_incel
      • resolved an issue on "A Simplistic TCP Finite State Machine (FSM)" kata
      • 29 days ago

      your function listen() clashes with POSIX's listen(). Criterion is probably using listen() somewhere for inter-process communication and calls your function instead, leading to a crash. Rename it, and your code will pass.

    • Custom User Avatar
      • makidelcon
      • created an issue for "A Simplistic TCP Finite State Machine (FSM)" kata
      • 29 days ago

      I wrote my solution in C, but the test program is crashing, the problem is in the libcriterion.so, there is some way to attach the gdb on it and see what is going on?
      Just in case, i wrote this simple function to verify my code locally and all sample tests are working!

      void fixed_test(size_t n, enum Event events[], enum State waited_result){
      	if(get_TCP_state(n, events) == waited_result){
      		puts("[+] g00d [+]");
      	} else {
      		puts("[-] b4d [-]");
      	}
      }
      

      This is the error, as i can't attach any debbuger i can't see what is in those addresses:

      /usr/lib/libcriterion.so.3(+0x32b87)[0x7f3d3b842b87]
      /usr/lib/libcriterion.so.3(+0x34e0a)[0x7f3d3b844e0a]
      /usr/lib/libcriterion.so.3(+0x1a34b)[0x7f3d3b82a34b]
      /usr/lib/libcriterion.so.3(+0x270fd)[0x7f3d3b8370fd]
      /usr/lib/libcriterion.so.3(+0x21cc4)[0x7f3d3b831cc4]
      /usr/lib/libcriterion.so.3(+0x193f3)[0x7f3d3b8293f3]
      /usr/lib/libcriterion.so.3(+0x176ef)[0x7f3d3b8276ef]
      /usr/lib/libcriterion.so.3(+0x11e96)[0x7f3d3b821e96]
      /usr/lib/libcriterion.so.3(criterion_run_all_tests+0x1d2)[0x7f3d3b8183b2]
      /usr/lib/libcriterion.so.3(main+0x30)[0x7f3d3b8170f0]
      /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f3d3af18c87]
      ./test[0x400b2a]
      Invalid argument [22] (/src/criterion/build/nanomsg-build/src/nanomsg/src/aio/usock_posix.inc:353)
      
    • Custom User Avatar
      • NoneAli
      • commented on "Two Sum" javascript solution
      • last month

      I think there're lots of fake users vote for this solution by best practice why ?

    • Custom User Avatar
      • metatable
      • created a suggestion for "A Simplistic TCP Finite State Machine (FSM)" kata
      • last month

      Lua translation!

    • Custom User Avatar
      • EranosyanAlexander
      • commented on "A Simplistic TCP Finite State Machine (FSM)" kata
      • last month

      This kata is overrated - it feels like it belongs to the 6th level (at best)
      =_=

    • Custom User Avatar
      • NoneAli
      • commented on "Binary Addition" javascript solution
      • 5 months ago

      I'll say, but keep in mind that this approach is more concise and efficient than your method, especially for larger numbers.

    • Custom User Avatar
      • TRakryan7
      • commented on "Binary Addition" javascript solution
      • 5 months ago

      Wow... that's insane

    • Custom User Avatar
      • ANGELA-PARGA
      • commented on "Binary Addition" javascript solution
      • 8 months ago

      You are right. I know you are not supposed to 'invent the wheel again' but this exercise is great to learn algorithmic thinking and complex concepts like recursion.

    • Custom User Avatar
      • ANGELA-PARGA
      • commented on "Binary Addition" javascript solution
      • 8 months ago

      I think it's better to use this space to do what you wanted to do at first. This is a great exercise to understand and practice algorithms and recursion

    • Custom User Avatar
      • JetMake
      • commented on "Binary Addition" javascript solution
      • 9 months ago

      yeah that's the way she goes sometimes. i do these challenges just to nail into my brain the kinds of built in functions you can use, because I hate doing what you did and realizing I spent so much time for no reason. A good rule of thumb is that for 7/8 kyu problems, you generally don't have to reinvent any wheels.

    • Custom User Avatar
      • alagunoff
      • commented on "Two Sum" javascript solution
      • 11 months ago

      Wut?

    • Custom User Avatar
      • slddiq
      • commented on "Two Sum" javascript solution
      • 11 months ago

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

    • Custom User Avatar
      • pseud0n
      • commented on "A Simplistic TCP Finite State Machine (FSM)" kata
      • 11 months ago

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

    • Custom User Avatar
      • Java17
      • commented on "Jenny's secret message" javascript solution
      • 13 months ago

      good though

    • Loading more items...
    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...