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
  • message = lambda: ''.join([chr(i) for i in [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100]])
    • def Hello_World(Hellow_World):
    • print ("Hello World")
    • message = lambda: ''.join([chr(i) for i in [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100]])
Code
Diff
  • multiply = lambda a, b: a.__mul__(b)
    • def multiply(a, b):
    • return a * b
    • multiply = lambda a, b: a.__mul__(b)
Code
Diff
  • def print_statements():
        """Prints Hello Mark along with other lines of code"""
        statements = ("Hello Mark!",
                      "This is my first python script.",
                      "Python will be fun to learn!",
                      "I am not at COGS",
                      "I am at home in my jammies.")
    
        # Printing lines of code:
        for statement in statements:
            print(statement)
    • def Print_Statements():
    • # Prints "Hello Mark!"
    • print ("Hello Mark!")
    • def print_statements():
    • """Prints Hello Mark along with other lines of code"""
    • statements = ("Hello Mark!",
    • "This is my first python script.",
    • "Python will be fun to learn!",
    • "I am not at COGS",
    • "I am at home in my jammies.")
    • # Prints "This is my first python script"
    • print ("This is my first python script.")
    • # Prints "Python will be fun to learn!"
    • print ("Python will be fun to learn!")
    • # Prints "I am not at COGS, I am at home in my jammies."
    • print ("I am not at COGS, I am at home in my jammies.")
    • # Prints "Ani Morrow's script has ended...have a great semester!"
    • print ("Ani Morrow's script has ended...have a great semester!")
    • # Printing lines of code:
    • for statement in statements:
    • print(statement)
Fundamentals
Strings
Data Types
Algorithms
Logic
Code
Diff
  • def palindrome(word):
        return word[::-1] == word
    
    • def palindrome(word):
    • if word[::-1] == word:
    • return True
    • else:
    • return False
    • return word[::-1] == word
Code
Diff
  • const power = Math.pow
    • const power = (num, exp) => !exp ? 1 : new Array(exp).fill(num).reduce((a , b) => a * b)
    • const power = Math.pow
Fundamentals
Games
Code
Diff
  • riddle=lambda x:x.find('?')
    • riddle=lambda w:w.index("?")
    • riddle=lambda x:x.find('?')
Code
Diff
  • import java.util.Arrays;
    import java.util.List;
    import java.util.stream.Collectors;
    
    public class Kata {
        public static int findIndex (int[] array, int target) {
          return Arrays.stream(array).boxed().collect(Collectors.toList()).indexOf(target);
        }
    }
    • import org.apache.commons.lang3.ArrayUtils;
    • import java.util.Arrays;
    • import java.util.List;
    • import java.util.stream.Collectors;
    • public class Kata {
    • public static int findIndex (int[] array, int target) {
    • return ArrayUtils.indexOf(array, target);
    • return Arrays.stream(array).boxed().collect(Collectors.toList()).indexOf(target);
    • }
    • }
Code
Diff
  • const isDivisible = (n,x,y) => (!(n%x) && !(n%y))
    • function isDivisible(n, x, y) {
    • if (n % x === 0 && n % y === 0) {
    • return true
    • } else {
    • return false
    • }
    • }
    • const isDivisible = (n,x,y) => (!(n%x) && !(n%y))
Code
Diff
  • const factorial = num => num === 1 ? 1 : num * factorial(num - 1)
    • function factorial(num){
    • if(num === 1){
    • return 1;
    • }
    • return num * factorial(num - 1)
    • }
    • const factorial = num => num === 1 ? 1 : num * factorial(num - 1)