• 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
brander Avatar
Name:Unknown
Clan:Unknown
Member Since:Jan 2017
Last Seen:Feb 2025
Profiles:
Following:1
Followers:1
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (35)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Kacarott
    • commented on "Spies! Expose the dirty double crossers" kata
    • 2 years ago

    Author is long gone, so I am going to unpublish

  • Custom User Avatar
    • Voile
    • created an issue for "Spies! Expose the dirty double crossers" kata
    • 2 years ago

    As mentioned below, the reference solution used in the random tests are incorrect.

  • Custom User Avatar
    • martin3141
    • commented on "Shortest Word" haskell solution
    • 5 years ago

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

  • Custom User Avatar
    • solitude
    • commented on "A Gift Well Spent" kata
    • 6 years ago

    Now fixed.

  • Custom User Avatar
    • rruusu
    • commented on "Spies! Expose the dirty double crossers" kata
    • 7 years ago

    Random tests are producing false negatives:

    Falsifiable (after 74 tests and 37 shrinks): 
    [(-37,[-2,51]),(-2,[-37]),(51,[-37,-2]),(-2,[51])]
    3 /= 2
    
    Falsifiable (after 27 tests and 18 shrinks): 
    [(17,[17]),(17,[17])]
    1 /= 2
    
    Falsifiable (after 28 tests and 30 shrinks): 
    [(23,[-20]),(-7,[23,-20]),(23,[-7]),(-20,[-7]),(-20,[23])]
    3 /= 2
    
    Falsifiable (after 61 tests and 37 shrinks): 
    [(-2,[-51,18]),(18,[-51]),(-51,[-2,18]),(18,[-2])]
    3 /= 2
    
  • Custom User Avatar
    • brander
    • commented on "Kata Suggestions" topic
    • 8 years ago

    Folks, I would love to get some feedback on a kata a put together.

    https://www.codewars.com/kata/spies-expose-the-dirty-double-crossers

    Any thoughts how to improve?

  • Custom User Avatar
    • JohanWiltink
    • commented on "String Suffixes" haskell solution
    • 8 years ago

    longestPrefix is awkward, but suffixes is g e n i u s !

  • Custom User Avatar
    • dulot
    • commented on "First Variation on Caesar Cipher" kata
    • 8 years ago

    You should read again the description!

  • Custom User Avatar
    • jungerstein
    • commented on "First Variation on Caesar Cipher" kata
    • 8 years ago

    But, thence, 16 would be [4, 3, 3, 3, 3] instead of the given [4, 4, 4, 4, 0].

    Also, I cannot derive the split [4, 4, 4, 4, 0] given the rules. It breaks the rule 'the fifth part has the longest length'.

  • Custom User Avatar
    • deadwater
    • commented on "First Variation on Caesar Cipher" kata
    • 8 years ago

    I think 6 would be [2,1,1,1,1] and 7 would be [2,2,1,1,1] and 11 would be [3,2,2,2,2] mainly driven by the restriction that the fifth portion be as long as possible but less than or equal to the other 4.

  • Custom User Avatar
    • brander
    • commented on "MOD 256 without the MOD operator" python solution
    • 8 years ago

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

  • Custom User Avatar
    • j.hn
    • commented on "Spies! Expose the dirty double crossers" kata
    • 8 years ago

    Ah, I misread the instrucions - I read the above ans 0->1->4->0 so a ring of 3!

  • Custom User Avatar
    • brander
    • commented on "Spies! Expose the dirty double crossers" kata
    • 8 years ago

    Glad you enjoyed. I'll be interested to see how people solve it. Can you paste the exact error your are getting from the quick check? In the example mentioned above the ring size would be 1 because no one is spying on each other.

  • Custom User Avatar
    • j.hn
    • commented on "Spies! Expose the dirty double crossers" kata
    • 8 years ago

    It's showing a test case when it fails - eg [(0,[1]), (4,[0]), (1,[4])] ... 3 /= 1. Intuitively the solution is 3 and if I type the case into the eaxample tests it passes with 3. But I'm always getting a random failure with a spy ring of 3. Perhaps I'm missing something? Just to add, it could well be a problem with my solution - it took me a lot longer to solve than expected which makes it an interesting kata.

  • Custom User Avatar
    • brander
    • commented on "Spies! Expose the dirty double crossers" kata
    • 8 years ago

    Thanks for taking a look at this one. I have updated the test cases so that - I beleive- you will receive a counter examples in case of failure. The random test case code snippet is:

    it "check a random case" $property $
        \x -> largestspyring x === solution (x :: [(Int,[Int])])
    

    This is my first Kata and I am not an expert on hTest, so I'd welcome improvement suggestions.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...