8 kyu
Opposite number
7,809 of 366,089sergioet
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 | 416956 |
Total Skips | 18111 |
Total Code Submissions | 637175 |
Total Times Completed | 366089 |
Ruby Completions | 7809 |
JavaScript Completions | 143227 |
CoffeeScript Completions | 244 |
Python Completions | 104003 |
C# Completions | 19277 |
Java Completions | 33542 |
Haskell Completions | 2187 |
Clojure Completions | 923 |
C++ Completions | 20925 |
PHP Completions | 7749 |
Elixir Completions | 964 |
C Completions | 9766 |
Go Completions | 6008 |
Rust Completions | 3826 |
TypeScript Completions | 3973 |
Swift Completions | 4248 |
Lua Completions | 880 |
Shell Completions | 1311 |
Julia Completions | 362 |
Groovy Completions | 207 |
Kotlin Completions | 3054 |
Crystal Completions | 110 |
NASM Completions | 240 |
R Completions | 841 |
Nim Completions | 156 |
OCaml Completions | 301 |
Scala Completions | 852 |
PureScript Completions | 69 |
Racket Completions | 196 |
Dart Completions | 1784 |
Forth Completions | 107 |
VB Completions | 590 |
Factor Completions | 52 |
CFML Completions | 72 |
SQL Completions | 9655 |
Elm Completions | 115 |
Perl Completions | 163 |
COBOL Completions | 91 |
D Completions | 38 |
Total Stars | 1290 |
% of votes with a positive feedback rating | 85% of 22753 |
Total "Very Satisfied" Votes | 17184 |
Total "Somewhat Satisfied" Votes | 4099 |
Total "Not Satisfied" Votes | 1470 |