cosmos icon indicating copy to clipboard operation
cosmos copied to clipboard

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

Open sudhanshuchopra opened this issue 9 years ago • 10 comments

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

sudhanshuchopra avatar Oct 01 '17 21:10 sudhanshuchopra

Hi, @sudhanshuchopra! May I try this one?

Deangelogn avatar Oct 01 '17 22:10 Deangelogn

I have made a pull request with my code

Deangelogn avatar Oct 01 '17 23:10 Deangelogn

I have implemented a Python version: #122

Vitorvgc avatar Oct 02 '17 00:10 Vitorvgc

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

druzmieres avatar Oct 02 '17 02:10 druzmieres

I have sent a C++ version.

Eleanor1702 avatar Oct 02 '17 15:10 Eleanor1702

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

murilodag avatar Oct 02 '17 15:10 murilodag

I will try this in java Solved #189

shivanshsoni avatar Oct 02 '17 15:10 shivanshsoni

Sure go ahead

sudhanshuchopra avatar Oct 02 '17 15:10 sudhanshuchopra

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

edwardrichtofen115 avatar Oct 06 '17 07:10 edwardrichtofen115

@arnavb Please assign me this issue

HariniJeyaraman avatar Apr 09 '20 22:04 HariniJeyaraman