Skip to content

It's a repo of the solutions of questions in the book <<Cracking the coding interview>>

Notifications You must be signed in to change notification settings

siliangZ/cracking-the-coding-interview-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

It's a repo to record my solutions to the problems in <<Cracking the coding interview>>

Bit manipulation

two's complement representation of negative number

arithmetic vs logical right shift

  • arithmetic: we keep the sign bit and only shift the value and fill the new bit with the value of sign bit. In rust, the shift is always arithmetic shift
  • logical: we shift the bit and put 0 at the most significant bit.

About

It's a repo of the solutions of questions in the book <<Cracking the coding interview>>

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages