Bit Twiddling Hacks
Bit Twiddling Hacks Many public domain algorithms (with C implementations) for low-level messing with bits. Some examples: Compute the minimum or maximum of two integers Determining if an integer is a power of 2 Counting bits set Swapping individual bits Reversing bit sequences Finding integer log base 2 of an integer (aka the position of […]
Read Full Post | Make a Comment ( Comments Off on Bit Twiddling Hacks )Finding the longest palindromic substring
Finding the longest palindromic substring Given a string, find the longest palindromic contiguous substring. If there are more than one with the maximum length, return any one. via /r/programming and /r/compsci [reddit]
Read Full Post | Make a Comment ( Comments Off on Finding the longest palindromic substring )Data Structures and Algorithms Problems
Data Structures and Algorithms Problems See this reddit post for discussion
Read Full Post | Make a Comment ( Comments Off on Data Structures and Algorithms Problems )