8 kyu
Is n divisible by x and y?
51,275 of 129,863naaz
Description:
Create a function that checks if a number n
is divisible by two numbers x
AND y
. All inputs are positive, non-zero numbers.
Examples:
1) n = 3, x = 1, y = 3 => true because 3 is divisible by 1 and 3
2) n = 12, x = 2, y = 6 => true because 12 is divisible by 2 and 6
3) n = 100, x = 5, y = 3 => false because 100 is not divisible by 3
4) n = 12, x = 7, y = 5 => false because 12 is neither divisible by 7 nor 5
Refactoring
Similar Kata:
Stats:
Created | May 3, 2015 |
Published | May 3, 2015 |
Warriors Trained | 152524 |
Total Skips | 6690 |
Total Code Submissions | 241910 |
Total Times Completed | 129863 |
JavaScript Completions | 51275 |
Python Completions | 32386 |
Ruby Completions | 2947 |
C# Completions | 6323 |
Java Completions | 12009 |
CoffeeScript Completions | 67 |
Shell Completions | 669 |
C Completions | 3512 |
TypeScript Completions | 1134 |
Julia Completions | 110 |
Go Completions | 1958 |
Elixir Completions | 201 |
Scala Completions | 417 |
C++ Completions | 12018 |
Crystal Completions | 45 |
Dart Completions | 846 |
Elm Completions | 64 |
Erlang Completions | 142 |
Fortran Completions | 68 |
F# Completions | 165 |
Groovy Completions | 83 |
Kotlin Completions | 1211 |
Lua Completions | 299 |
Nim Completions | 51 |
R Completions | 264 |
Reason Completions | 19 |
Solidity Completions | 578 |
Swift Completions | 1749 |
VB Completions | 288 |
Rust Completions | 1047 |
PowerShell Completions | 283 |
Haskell Completions | 549 |
PureScript Completions | 34 |
Forth Completions | 66 |
Factor Completions | 22 |
Racket Completions | 61 |
SQL Completions | 4064 |
Objective-C Completions | 61 |
Clojure Completions | 232 |
Prolog Completions | 58 |
CFML Completions | 60 |
PHP Completions | 1526 |
COBOL Completions | 46 |
D Completions | 26 |
OCaml Completions | 56 |
RISC-V Completions | 9 |
NASM Completions | 13 |
Total Stars | 621 |
% of votes with a positive feedback rating | 92% of 11049 |
Total "Very Satisfied" Votes | 9407 |
Total "Somewhat Satisfied" Votes | 1435 |
Total "Not Satisfied" Votes | 207 |
Total Rank Assessments | 879 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 1 kyu |
Lowest Assessed Rank | 8 kyu |