8 kyu
Opposite number
7,817 of 367,806sergioet
Description:
Very simple, given a number (integer / decimal / both depending on the language), find its opposite (additive inverse).
Examples:
1: -1
14: -14
-34: 34
Fundamentals
Similar Kata:
Stats:
Created | Mar 8, 2016 |
Published | Mar 8, 2016 |
Warriors Trained | 418838 |
Total Skips | 18191 |
Total Code Submissions | 640002 |
Total Times Completed | 367806 |
Ruby Completions | 7817 |
JavaScript Completions | 143789 |
CoffeeScript Completions | 244 |
Python Completions | 104670 |
C# Completions | 19353 |
Java Completions | 33663 |
Haskell Completions | 2189 |
Clojure Completions | 925 |
C++ Completions | 21058 |
PHP Completions | 7767 |
Elixir Completions | 966 |
C Completions | 9813 |
Go Completions | 6049 |
Rust Completions | 3847 |
TypeScript Completions | 4003 |
Swift Completions | 4266 |
Lua Completions | 886 |
Shell Completions | 1320 |
Julia Completions | 362 |
Groovy Completions | 207 |
Kotlin Completions | 3060 |
Crystal Completions | 110 |
NASM Completions | 241 |
R Completions | 841 |
Nim Completions | 157 |
OCaml Completions | 302 |
Scala Completions | 855 |
PureScript Completions | 69 |
Racket Completions | 197 |
Dart Completions | 1803 |
Forth Completions | 107 |
VB Completions | 590 |
Factor Completions | 52 |
CFML Completions | 72 |
SQL Completions | 9693 |
Elm Completions | 115 |
Perl Completions | 164 |
COBOL Completions | 91 |
D Completions | 38 |
Total Stars | 1294 |
% of votes with a positive feedback rating | 85% of 22795 |
Total "Very Satisfied" Votes | 17219 |
Total "Somewhat Satisfied" Votes | 4104 |
Total "Not Satisfied" Votes | 1472 |