• 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
Samratrai Avatar
Name:Samrat Rai
Clan:Unknown
Skills:python, sql, data analysis
Member Since:Jun 2018
Last Seen:Jan 2025
Profiles:
Following:7
Followers:1
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (16)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • rowcased
    • commented on "Cat and Mouse - Easy Version" python solution
    • 3 years ago

    There are no such tests at least in Python, they all begin with C or m.

  • Custom User Avatar
    • Samratrai
    • commented on "Cat and Mouse - Easy Version" python solution
    • 3 years ago

    Well, this will not work if there is "." before or after "C" and "m".

  • Custom User Avatar
    • Samratrai
    • commented on "Roman Numerals Decoder" python solution
    • 4 years ago

    Yeah, got it, actually I had EMACS turned on in codewars which I didn't know about. Now I can simply copy paste by CTRL+C and CTRL+V.

  • Custom User Avatar
    • Avanta
    • commented on "Roman Numerals Decoder" python solution
    • 4 years ago

    1 - right click
    2 - press paste

  • Custom User Avatar
    • Samratrai
    • commented on "Sudoku Solution Validator" kata
    • 4 years ago

    Yes checked, there was some issue with 8 and 9 column, I was able to solve it. Mine solution was not very good but it works, so no issue,
    you can check and rate my code if you want, any suggestion will be appreciated.

  • Custom User Avatar
    • Samratrai
    • commented on "Roman Numerals Decoder" python solution
    • 4 years ago

    how to copy paste in codewars.

  • Custom User Avatar
    • Samratrai
    • commented on "Roman Numerals Decoder" python solution
    • 4 years ago

    What? Why? How many days it took you to write that, I think you can't copy paste in codewars.

  • Custom User Avatar
    • Chrono79
    • commented on "Sudoku Solution Validator" kata
    • 4 years ago

    No, check the last column again. And maybe next time, paste the sudoku.

  • Custom User Avatar
    • Samratrai
    • commented on "Sudoku Solution Validator" kata
    • 4 years ago

    Why this is not the valid sudoko?

    1. Only 1-9 numbers
    2. 1-9 numbers in each column and each row.
    3. 1 to 9 number in each 3*3 grid.

    What else is left, test 4 is not working.

  • Custom User Avatar
    • Samratrai
    • commented on "Enumerable Magic #1 - True for All?" python solution
    • 4 years ago

    Agree

  • Custom User Avatar
    • Samratrai
    • commented on "Enumerable Magic #1 - True for All?" kata
    • 4 years ago

    Agree, not able to use all() function for this kata.

  • Custom User Avatar
    • Samratrai
    • commented on "Element equals its index" kata
    • 4 years ago

    Time limit is the only reason why it's 6 Kyu task.

  • Custom User Avatar
    • Samratrai
    • commented on "How many days are we represented in a foreign country?" python solution
    • 4 years ago

    Hi @Blind4Basics , can you please check my code if it's good solution or not.

    https://www.codewars.com/kata/reviews/5d964f69628e4600018ecc69/groups/612a2348c48a95000152abed

  • Custom User Avatar
    • Samratrai
    • commented on "Duplicates. Duplicates Everywhere." python solution
    • 4 years ago

    Thanks for the help.

  • Custom User Avatar
    • akar-0
    • commented on "Duplicates. Duplicates Everywhere." python solution
    • 4 years ago

    It just creates an entry v in the map (so v in seen returns True after that). It could be done using a set rather than a dictionary: seen.add(v).

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...