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
  • foo = 0;
    • const foo = 12828721, bar = foo, baz = bar;
    • foo = 0;
Code
Diff
  • package kumite
    
    import "time"
    
    func CheckWorkHours(dateTime time.Time) bool {
      return 1 <= dateTime.Weekday() && dateTime.Weekday() <= 5 && 8 <= dateTime.Hour() && dateTime.Hour() < 18
    }
    • package kumite
    • import "time"
    • func CheckWorkHours(dateTime time.Time) bool {
    • const (
    • firstWorkingDay = 1
    • lastWorkingDay = 5
    • firstWorkingHour = 8
    • lastWorkingHour = 18
    • )
    • day, hour := dateTime.Weekday(), dateTime.Hour()
    • return firstWorkingDay <= day && day <= lastWorkingDay && firstWorkingHour <= hour && hour < lastWorkingHour
    • return 1 <= dateTime.Weekday() && dateTime.Weekday() <= 5 && 8 <= dateTime.Hour() && dateTime.Hour() < 18
    • }

creating code that finds out the volume of the cube from the data (x,y,z)

Code
Diff
  • def kube(x, y, z):
        #your code here
        return x*y*z
        #return 0
    • def kube(x, y, z):
    • #your code here
    • return x*y*z
    • return x*y*z
    • #return 0
Code
Diff
  • t(){for(;;);}
    • l
    • t(){for(;;);}
Code
Diff
  • from datetime import datetime as dt
    days=lambda m,d:(dt(2022,m,d)-dt(2022,1,1)).days + 1
    • from datetime import datetime
    • def days(month,day):
    • return (datetime(2022, month, day) - datetime(2022, 1, 1)).days + 1
    • from datetime import datetime as dt
    • days=lambda m,d:(dt(2022,m,d)-dt(2022,1,1)).days + 1