8 kyu
Opposite number
142,559 of 363,561sergioet
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 | 413998 |
Total Skips | 17968 |
Total Code Submissions | 633118 |
Total Times Completed | 363561 |
Ruby Completions | 7797 |
JavaScript Completions | 142559 |
CoffeeScript Completions | 243 |
Python Completions | 102979 |
C# Completions | 19132 |
Java Completions | 33332 |
Haskell Completions | 2175 |
Clojure Completions | 918 |
C++ Completions | 20731 |
PHP Completions | 7709 |
Elixir Completions | 960 |
C Completions | 9711 |
Go Completions | 5944 |
Rust Completions | 3789 |
TypeScript Completions | 3917 |
Swift Completions | 4234 |
Lua Completions | 868 |
Shell Completions | 1290 |
Julia Completions | 361 |
Groovy Completions | 205 |
Kotlin Completions | 3038 |
Crystal Completions | 108 |
NASM Completions | 237 |
R Completions | 838 |
Nim Completions | 155 |
OCaml Completions | 298 |
Scala Completions | 849 |
PureScript Completions | 66 |
Racket Completions | 195 |
Dart Completions | 1762 |
Forth Completions | 105 |
VB Completions | 583 |
Factor Completions | 51 |
CFML Completions | 71 |
SQL Completions | 9574 |
Elm Completions | 113 |
Perl Completions | 159 |
COBOL Completions | 88 |
D Completions | 36 |
Total Stars | 1284 |
% of votes with a positive feedback rating | 85% of 22694 |
Total "Very Satisfied" Votes | 17141 |
Total "Somewhat Satisfied" Votes | 4085 |
Total "Not Satisfied" Votes | 1468 |