7 kyu

Greatest common divisor

3,604 of 18,191RVdeKoning

Description:

Find the greatest common divisor of two positive integers. The integers can be large, so you need to find a clever solution.

The inputs x and y are always greater or equal to 1, so the greatest common divisor will always be an integer that is also greater or equal to 1.

Algorithms
Fundamentals
Recursion

Stats:

CreatedMar 11, 2015
PublishedMar 12, 2015
Warriors Trained26195
Total Skips490
Total Code Submissions47969
Total Times Completed18191
Python Completions3604
Haskell Completions249
JavaScript Completions11378
Ruby Completions458
CoffeeScript Completions36
PHP Completions292
C# Completions462
Java Completions1274
C Completions250
C++ Completions510
COBOL Completions9
Rust Completions114
Go Completions128
NASM Completions8
TypeScript Completions107
Total Stars285
% of votes with a positive feedback rating90% of 1486
Total "Very Satisfied" Votes1233
Total "Somewhat Satisfied" Votes213
Total "Not Satisfied" Votes40
Ad
Contributors
  • RVdeKoning Avatar
  • bkaes Avatar
  • GiacomoSorbi Avatar
  • donaldsebleung Avatar
  • Chrono79 Avatar
  • kazk Avatar
  • Blind4Basics Avatar
  • Voile Avatar
  • Souzooka Avatar
  • rowcased Avatar
  • FArekkusu Avatar
  • user4444589 Avatar
  • hobovsky Avatar
  • stellartux Avatar
  • SergeySinyavskiy Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
Ad