Squaring n-bit int vs. multiplying two n-bit ints

前端 未结 6 607
南旧
南旧 2021-01-05 05:25

Disclaimer: Homework question. I\'m looking for a hint…

Professor F. Lake tells his class that it is asymptotically faster to square an n-bit integer than to multip

6条回答
  •  北海茫月
    2021-01-05 06:06

    Here's a hint.

    And here's my solution in SECRET CODE:Fdhnevat zrnaf lbh bayl unir gb qb bar vavgvny SG, abg gjb, fb vg'f snfgre.

提交回复
热议问题