Skip to content

prudhvir/MDHQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MDHQ

MobileDev HQ

Factorial folder has solutions for factorial in c and ruby

As the factorial for large numbers cannot be stored in primitive data types in C, an array is used with MAX_DIGITS as 1000. Under this assumption, the maximum number of digits possible in the factorial are 1000. If the factorial is large, the number can be changed by changing the value of MAX_DIGITS variable.

To run the program in C, run the following commands:

$ gcc factorial.c
$ ./a.out positive_number

To run the program in ruby, run the following command:

$ ruby factorial.rb postive_number

Sudoku folder contains the code to solve sudoku puzzle and instructions on how to run the program

About

MobileDev HQ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors