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
Fundamentals
Mathematics
Tutorials
Code
Diff
  • def is_square(n):    
        return (n ** 0.5).is_integer()
    • import math
    • def is_square(n):
    • return int(math.sqrt(n)) ** 2 == n
    • return (n ** 0.5).is_integer()
Code
Diff
  • unsigned long long div2(unsigned long long a){
      
      return (a / 2);
    }
    • unsigned long long div2(unsigned long long a){
    • return a >> 1;
    • return (a / 2);
    • }
Code
Diff
  • package kata
    
    func IntegerSum(n int) (sum int) {
      sum = n * (n+1) / 2
      return
    }
    
    func AddMultiples(n int) (sum int) {
      sum = IntegerSum((n-1)/3) * 3 + IntegerSum((n-1)/5) * 5 - IntegerSum((n-1)/15) * 15
      return 
    }
    • package kata
    • func AddMultiples(n int) (sum int) {
    • for i := 1; i < n; i++ {
    • if i % 3 == 0 || i % 5 == 0 {
    • sum += i
    • }
    • }
    • func IntegerSum(n int) (sum int) {
    • sum = n * (n+1) / 2
    • return
    • }
    • func AddMultiples(n int) (sum int) {
    • sum = IntegerSum((n-1)/3) * 3 + IntegerSum((n-1)/5) * 5 - IntegerSum((n-1)/15) * 15
    • return
    • }
Fundamentals
Code
Diff
  • #include <stdio.h>
    
    int helloCplusplus(){
      return 0;
    }
    • #include <stdio.h>
    • int helloCplusplus(){
    • return !puts("Hello Cplusplus\n");
    • return 0;
    • }
Code
Diff
  • bool isLeap(long n) {
      if ((n % 4 == 0 && n % 100 != 0) || (n % 400 == 0))
        return true;
      return false;
    }
    • #define isLeap(y)!(y%4)*y%100||!(y%400)
    • bool isLeap(long n) {
    • if ((n % 4 == 0 && n % 100 != 0) || (n % 400 == 0))
    • return true;
    • return false;
    • }
Code
Diff
  • class FirstKumite{
      public static function string(n:String) 
      {
         if(n == '')
         {
           n = 'Nothing';
         }    
         return n;
         
        
      }
    }
    • class FirstKumite{
    • public static function helloHaxe(n:String)
    • public static function string(n:String)
    • {
    • if(n == '')
    • {
    • return 'Nothing';
    • }
    • else
    • {
    • return n;
    • }
    • n = 'Nothing';
    • }
    • return n;
    • }
    • }