# finnw

less info
reputation
18
bio website location United Kingdom age 39 member for 2 years, 7 months seen Nov 15 at 14:22 profile views 11

# 30 Actions

 Nov11 awarded Teacher Nov6 answered Calculating the Hamming distance Dec18 awarded Notable Question Aug17 awarded Popular Question Feb13 comment Find the smallest regular number that is not less than N (Python) The point of the bit twiddling was to calculate exactly the right power of 2 to multiply by to get the regular number in the right range. This could be applied to your version, if you turn those nested loops inside-out, the inner loop could be replaced by a bit count + shift. And no I was referring to lazy lists: svn.python.org/projects/python/tags/r267/Lib/test/… Feb13 accepted Find the smallest regular number that is not less than N (Python) Feb13 comment Create a re-usable class to get different values from enum attribute decorations Feb13 revised Python Zeller's algorithm wikipedia link to Zeller's Congruence Feb12 asked Find the smallest regular number that is not less than N (Python) Feb12 suggested suggested edit on Python Zeller's algorithm Oct14 revised Optimizing a Deal Or No Deal-style game in Java More descriptive title Oct14 revised Bit-twiddling for a custom image format More descriptive title Oct14 suggested suggested edit on Bit-twiddling for a custom image format Oct14 comment Cosine simularity perfomance c# Can you post the declaration of `dict`? Seeing the type will make it easier to follow. I am guessing its a `Dictionary>`? Also what are the keys of the inner dictionary? And are most of them common to all words or present on only a few words each? Oct14 suggested suggested edit on Optimizing a Deal Or No Deal-style game in Java Oct14 comment Getting the value of a custom attribute from an enum @MattDavey fair enough, its a contrived example and a dictionary or array would probably be a better way to link the enum to the object. The enum is still appropriate though - it represents the name of the planet, not the properties of the planet (which are in a separate class.) Oct14 awarded Organizer Oct14 awarded Editor Oct14 revised Bouncing ball - for swing event handling tutorial More descriptive title Oct14 revised bash script for printer administration More descriptive title