burakkose:blog
  • Archives

Bit işlemleri yardımıyla 7 ile çarpma işlemi - Matematik Problemi

Bir sayıyı yedi ile çarpmanın bitwise karşılığı.

if __name__ == '__main__':
    num = 3
    print((num << 3) - num)

Not: Sadece pozitif sayılar için.

more ...

  • Social

    • envelope
    • twitter
    • linkedin
    • github
    • spotify
    • rss
  • Categories

    • Algoritma
    • Big Data
    • Fonksiyonel Programlama
    • Interview
    • Linux
  • Tags

    • algorithm
    • bigdata
    • bioinformatic
    • datasciece
    • dynamic programming
    • fp
    • google
    • graph theory
    • greedy
    • interview
    • mathematical
    • microsoft
    • operating systems
    • python
    • scala
    • scheduling
    • searching
    • sorting
    • spark
    • string

© 2015 Burak Köse · Powered by pelican-bootstrap3, Pelican, Bootstrap

Creative Commons License Content licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where indicated otherwise.

Back to top