• 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
saurabhgupta050890 Avatar
Name:Saurabh Gupta
Clan:Mercer Consulting India Pvt. Ltd.
Skills:javascript, angularjs, cordova, ionic
Member Since:Sep 2015
Last Seen:Apr 2023
Profiles:
Following:1
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (6)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • trashy_incel
    • resolved an issue on "Linked Lists - Length & Count" kata
    • 4 months ago

    (OP was solving in JavaScript)

    your implementation of count() has a bug, it skips the last element of the list because your while(head.next) is not entered for the penultimate element. not a kata issue.

  • Custom User Avatar
    • Console Cowboy
    • commented on "Linked Lists - Length & Count" kata
    • 7 years ago

    Happened to me as well. I got around it by pushing a 3 to the LL in my solution

  • Custom User Avatar
    • ahmetabdi
    • commented on "Linked Lists - Length & Count" kata
    • 9 years ago

    Same issue here

  • Custom User Avatar
    • saurabhgupta050890
    • created an issue for "Linked Lists - Length & Count" kata
    • 9 years ago

    Wrong test case for count. Can't submit. LL generated by running buildOneTwoThree() is 1->2->null but have a positive test for 3

  • Custom User Avatar
    • Uraza
    • resolved an issue on "String to integer conversion" kata
    • 10 years ago

    Thanks for the feedback, the kata description has been updated.

  • Custom User Avatar
    • saurabhgupta050890
    • created an issue for "String to integer conversion" kata
    • 10 years ago

    Description doesn't makes its clear for getting NaN in case of '1 2 3'

  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...