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
  • function bestCodeEver(a)
      return a == 19 and true or false
    end
    
    • def bestCodeEver():
    • bestNumber = 19
    • return bestNumber
    • function bestCodeEver(a)
    • return a == 19 and true or false
    • end

Return a+b where a,b are the inputs to the function

Code
Diff
  • function sum_of_numbers(a, b)
      if a == b then
        return a + a or b + b 
      else
        return math.sqrt(b^2) + math.sqrt(a^2)
      end
    end
      
    • function sum_of_numbers(a, b)
    • return b + a
    • end
    • if a == b then
    • return a + a or b + b
    • else
    • return math.sqrt(b^2) + math.sqrt(a^2)
    • end
    • end

simple solution

Code
Diff
  • #define _____ 256 - 255 + 0 
    #define _(A,B)((A)*(B)+_____)
    #define ____(a,b)({register int __x=(a);register int __y=(b);__x*__y+_____;})
    #define ___(A)((A))
    #define q(x,y)((x)<<(y))
    #define w(x,y)((x)>>(y))
    
    long long unsigned int 
      multiply_and_add_one(
        long long unsigned int 
          a, 
            long long unsigned int 
              b) 
                {return ___(____(___(___((a))),___(___((b)))));}
    
    int iorejgior(long long unsigned int a, long long unsigned int b) { long long unsigned int asd = _____-1;
        while (b) 
            {if (b & _____) asd += a;
              a <<= _____;
                b >>= _____;} return asd + _____;
    }
    • int multiply_and_add_one(int a, int b)
    • {
    • return (a*b)+1+0+0+0+0+0+0+0+0+0+0+0+0+0;
    • #define _____ 256 - 255 + 0
    • #define _(A,B)((A)*(B)+_____)
    • #define ____(a,b)({register int __x=(a);register int __y=(b);__x*__y+_____;})
    • #define ___(A)((A))
    • #define q(x,y)((x)<<(y))
    • #define w(x,y)((x)>>(y))
    • long long unsigned int
    • multiply_and_add_one(
    • long long unsigned int
    • a,
    • long long unsigned int
    • b)
    • {return ___(____(___(___((a))),___(___((b)))));}
    • int iorejgior(long long unsigned int a, long long unsigned int b) { long long unsigned int asd = _____-1;
    • while (b)
    • {if (b & _____) asd += a;
    • a <<= _____;
    • b >>= _____;} return asd + _____;
    • }