• 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
dansaki Avatar
Name:Daniel Saki
Clan:Unknown
Member Since:Jun 2021
Last Seen:Mar 2023
Profiles:
Following:1
Followers:1
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (24)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Madjosz
    • commented on "Fix string case" c solution
    • 7 months ago

    It puts the null terminator at the end of both strings.

  • Custom User Avatar
    • dansaki
    • commented on "Complementary DNA" kata
    • 4 years ago

    Hey there! What I've written in those comments was a mistake and if you have a look at my solution you'd see that I haven't declared my variable as a static one. However, you're completely right on this and I've taken your advice. I've seen that static char variables could be easily viewed with things like readelf. Thank you for reminding me again! Happy coding!

  • Custom User Avatar
    • e404
    • commented on "Complementary DNA" kata
    • 4 years ago

    Dear Dansaki,

    I ve noticed that you store result into static char variable complement;

    I would try t store it into char * ptr_complement.

    Otherwise you could breach some data in the memory space denoted for static variables

  • Custom User Avatar
    • dansaki
    • commented on "dansaki's C solution for "Counting Duplicates"" kumite
    • 4 years ago

    Sounds interesting! I will go for it!

  • Custom User Avatar
    • kgashok
    • commented on "dansaki's C solution for "Counting Duplicates"" kumite
    • 4 years ago

    Glad you found it useful!

    Psssst! Give this exercise a shot - you will enjoy it.

    Happy coding!

  • Custom User Avatar
    • dansaki
    • commented on "dansaki's C solution for "Counting Duplicates"" kumite
    • 4 years ago

    Hi!
    I can't thank you enough. You showed me step by step what I was doing wrong and what I could have done more accurately. You also made revisions on your own forks to help me understand the final code much easier! I learnt where I was doing unnecessary codes and how I could re-write them way simpler.Your use of strchr() and strrchr() functions was smart! It was much simpler and easier. Again Thankyou for giving so much of your time and sharing your knowledge and experience with me!

  • Custom User Avatar
    • dansaki
    • commented on "dansaki's C solution for "Counting Duplicates"" kumite
    • 4 years ago

    The moment of Wow! Such a smart move!

  • Custom User Avatar
    • dansaki
    • commented on "dansaki's C solution for "Counting Duplicates"" kumite
    • 4 years ago

    I really enjoyed this part! Finding the first occurance and then searching from on step further on!

  • Custom User Avatar
    • dansaki
    • commented on "dansaki's C solution for "Counting Duplicates"" kumite
    • 4 years ago

    Before reading your revisions I wasn't aware of how useful strchr() is. It simply eliminated the for loop. Nul terminating the distincts that I didn't! Thankyou for showing me that

  • Custom User Avatar
    • dansaki
    • commented on "dansaki's C solution for "Counting Duplicates"" kumite
    • 4 years ago

    I have a bad habit of doing everything in a manner of too "step by step". But now I've learnt to avoid it. Also how my code compares complex to yours. Not freeing string, Oh! my really bad mistake!

  • Custom User Avatar
    • kgashok
    • commented on "dansaki's C solution for "Counting Duplicates"" kumite
    • 4 years ago

    @dansaki FWIW,

  • Custom User Avatar
    • dansaki
    • commented on "Fix string case" c solution
    • 4 years ago

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

  • Custom User Avatar
    • dansaki
    • commented on "Counting Duplicates" kata
    • 4 years ago

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

  • Custom User Avatar
    • kgashok
    • commented on "Counting Duplicates" kata
    • 4 years ago

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

  • Custom User Avatar
    • dansaki
    • commented on "Beginner Series #4 Cockroach" c solution
    • 4 years ago

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

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...