Start a new Kumite
AllAgda (Beta)BF (Beta)CCFML (Beta)ClojureCOBOL (Beta)CoffeeScriptCommonLisp (Beta)CoqC++CrystalC#D (Beta)DartElixirElm (Beta)Erlang (Beta)Factor (Beta)Forth (Beta)Fortran (Beta)F#GoGroovyHaskellHaxe (Beta)Idris (Beta)JavaJavaScriptJulia (Beta)Kotlinλ Calculus (Beta)LeanLuaNASMNim (Beta)Objective-C (Beta)OCaml (Beta)Pascal (Beta)Perl (Beta)PHPPowerShell (Beta)Prolog (Beta)PureScript (Beta)PythonR (Beta)RacketRaku (Beta)Reason (Beta)RISC-V (Beta)RubyRustScalaShellSolidity (Beta)SQLSwiftTypeScriptVB (Beta)
Show only mine

Kumite (ko͞omiˌtā) is the practice of taking techniques learned from Kata and applying them through the act of freestyle sparring.

You can create a new kumite by providing some initial code and optionally some test cases. From there other warriors can spar with you, by enhancing, refactoring and translating your code. There is no limit to how many warriors you can spar with.

A great use for kumite is to begin an idea for a kata as one. You can collaborate with other code warriors until you have it right, then you can convert it to a kata.

Ad
Ad
Code
Diff
  • def solution(param: list) -> bool:
        return len([x for x in param if x is True]) > 1
    • def solution(param: list) -> bool:
    • return list(map(lambda e: e is True, param)).count(True) >= 2
    • return len([x for x in param if x is True]) > 1
Code
Diff
  • calc = lambda x, op, y: eval(f"{x} {op} {y}")
    • calc = lambda eq: eval(eq)
    • calc = lambda x, op, y: eval(f"{x} {op} {y}")
Code
Diff
  • ++++++++++[>+>++>+++>++++>+++++>++++++>+++++++>++++++++>+++++++++>++++++++++>+++++++++++>++++++++++++<<<<<<<<<<<<-]>>>>>>>++.-->>>+.-++++++++.--------++++++++.-------->+.-<<<<<<<<++.-->>>>>+++++++.------->>>+.-++++.----<++++++++.--------.<<<<<<<+++.---<<<
    • x = "Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- let's do more of those!"
    • y = [21,1,8,27,88,9,478,97,18,34,129]
    • print("".join(x[z] for z in y))
    • ++++++++++[>+>++>+++>++++>+++++>++++++>+++++++>++++++++>+++++++++>++++++++++>+++++++++++>++++++++++++<<<<<<<<<<<<-]>>>>>>>++.-->>>+.-++++++++.--------++++++++.-------->+.-<<<<<<<<++.-->>>>>+++++++.------->>>+.-++++.----<++++++++.--------.<<<<<<<+++.---<<<
Code
Diff
  • exec(bytes('牦浯爠⁥浩潰瑲猠扵椻彳慰楬摮潲敭氽浡摢⁡㩸猨㴺畳⡢嬢慞稭ⵁ嵚∫∬Ⱒ⥸氮睯牥⤨㴩猽㩛ⴺ崱', 'u16')[2:])
    • is_palindrome = lambda s: (lambda i: i == i[::-1])("".join(c for c in s.upper()if c.isalpha()))
    • is_palindrome = lambda s: (x := "".join(c for c in s.upper()if c.isalpha())) == x[::-1]
    • exec(bytes('牦浯爠⁥浩潰瑲猠扵椻彳慰楬摮潲敭氽浡摢⁡㩸猨㴺畳⡢嬢慞稭ⵁ嵚∫∬Ⱒ⥸氮睯牥⤨㴩猽㩛ⴺ崱', 'u16')[2:])