• 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
sharathns Avatar
Name:Unknown
Clan:Infosys
Member Since:Jun 2015
Last Seen:Nov 2015
Profiles:
Following:257
Followers:257
Allies:257
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (4)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • DivyanshBatham
    • commented on "Complete The Pattern #7 - Cyclical Permutation" kata
    • 10 years ago

    I was doing this thing; but I realised it'll be a big problem as when I'll create a new kata then I have to edit all the previous kata....So I droped that thought.

  • Custom User Avatar
    • DivyanshBatham
    • commented on "Complete The Pattern #7 - Cyclical Permutation" kata
    • 10 years ago

    THANKS ^_^

  • Custom User Avatar
    • DivyanshBatham
    • commented on "Complete The Pattern #7 - Cyclical Permutation" kata
    • 10 years ago

    Lets say the argument passed is n, Hence:

    pattern(n)=

    123...n
    23...n1
    3...n12
    ..n123.
    .n123..
    n123...
    

    For n=10;

    pattern(10)=

    12345678910 
    23456789101 
    34567891012 
    45678910123 
    56789101234 
    67891012345 
    78910123456 
    89101234567 
    91012345678 
    10123456789
    
  • Custom User Avatar
    • sharathns
    • commented on "Complete The Pattern #7 - Cyclical Permutation" kata
    • 10 years ago

    What is the expected output when n > 9?

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...