Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
Fundamentals
Code
Diff
  • using System;
    
    public class Kata
        {
            public  static int Opposite(int number) => ~number + 1;
        }
  • 11
    using System;
    
    22
    33
    public class Kata
    
    44
        {
    
    5
            public  static int Opposite(int number) => number/-1;
    
    5+
            public  static int Opposite(int number) => ~number + 1;
    
    66
        }