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

Created on 1 Oct 2017  路  10Comments  路  Source: OpenGenus/cosmos

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

Hacktoberfest add code new algorithm

Most helpful comment

I'll try this one in Go
Done: #129

All 10 comments

Hi, @sudhanshuchopra! May I try this one?

I have made a pull request with my code

I have implemented a Python version: #122

I'll try this one in Go
Done: #129

I have sent a C++ version.

I'll try this one in JS.
Done: #185

I will try this in java Solved #189

Sure go ahead

Done using c++ , please check #674
https://github.com/OpenGenus/cosmos/pull/674

@arnavb Please assign me this issue

Was this page helpful?
0 / 5 - 0 ratings