8 kyu
Opposite number
144,558 of 370,199sergioet
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 | 421674 |
Total Skips | 18307 |
Total Code Submissions | 643619 |
Total Times Completed | 370199 |
Ruby Completions | 7827 |
JavaScript Completions | 144558 |
CoffeeScript Completions | 244 |
Python Completions | 105560 |
C# Completions | 19459 |
Java Completions | 33832 |
Haskell Completions | 2195 |
Clojure Completions | 928 |
C++ Completions | 21265 |
PHP Completions | 7789 |
Elixir Completions | 968 |
C Completions | 9881 |
Go Completions | 6089 |
Rust Completions | 3876 |
TypeScript Completions | 4047 |
Swift Completions | 4279 |
Lua Completions | 894 |
Shell Completions | 1333 |
Julia Completions | 363 |
Groovy Completions | 209 |
Kotlin Completions | 3081 |
Crystal Completions | 110 |
NASM Completions | 242 |
R Completions | 844 |
Nim Completions | 157 |
OCaml Completions | 304 |
Scala Completions | 860 |
PureScript Completions | 69 |
Racket Completions | 198 |
Dart Completions | 1823 |
Forth Completions | 108 |
VB Completions | 591 |
Factor Completions | 52 |
CFML Completions | 72 |
SQL Completions | 9743 |
Elm Completions | 116 |
Perl Completions | 165 |
COBOL Completions | 93 |
D Completions | 38 |
Total Stars | 1301 |
% of votes with a positive feedback rating | 85% of 22847 |
Total "Very Satisfied" Votes | 17258 |
Total "Somewhat Satisfied" Votes | 4114 |
Total "Not Satisfied" Votes | 1475 |