Tagged: bitwise Toggle Comment Threads | Keyboard Shortcuts

  • Dimitris Kalopsikakis 12:19 on 5 December 2016 Permalink | Reply
    Tags: bitwise, , , , , reduce   

    Second Maximum (v2) of list of integers without comparison, loop or recursion 

    Function sm() returns a tuple of the maximum and second maximum of a list of integers without any comparison or loop


    References:

     
  • Dimitris Kalopsikakis 10:10 on 16 November 2016 Permalink | Reply
    Tags: bitwise, ,   

    Max without comparison 


    References:

     
  • Dimitris Kalopsikakis 23:59 on 21 September 2016 Permalink | Reply
    Tags: bitwise, programming, , swap   

    Swap without tmp 

    1st way:

    2nd way, with XOR bitwise operator ( here: Python),


    References:

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel