OpenGenus/cosmos

Divide two integers without using multiplication, division and mod operator (Bit Manipulation)

Open

#113 opened on Oct 1, 2017

View on GitHub
 (10 comments) (0 reactions) (0 assignees)C++ (3,724 forks)batch import
Hacktoberfestadd codenew algorithm

Repository metrics

Stars
 (13,462 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Divide two integers without using multiplication, division and mod operator.

One has to return the floor of the result of division

Example 9/4=2

Contributor guide