template <class T> unsigned int edit_distance(const T& s1, const T& s2) { const size_t len1 = s1.size(), len2 = s2.size(); vect
Continue ReadingC++: Binary Search
//! \brief A recursive binary search using STL vectors //! \param vec The vector whose elements are to be searched //! \param start The index of
Continue ReadingC++: Longest Common Substring
#include <string> using std::string; int LongestCommonSubstring(const string& str1, const string& str2) { if(str1.empty() |
Continue ReadingWhat is “:-!!” in C code?
I bumped into this strange macro code in /usr/include/linux/kernel.h: /* Force a compilation error if condition is true, but also produce a resul
Continue ReadingC++: What is the name of the “–>” operator?
After reading Hidden Features and Dark Corners of C++/STL on comp.lang.c++.moderated, I was completely surprised that it compiled and worked in both V
Continue ReadingC++: Quicksort
#include <functional> #include <algorithm> #include <iterator> template< typename BidirectionalIterator, typename Compar
Continue ReadingHow Marketers Create and Consume Content
SOURCE
Continue ReadingBrand Loyalty Is Dead
SOURCE
Continue ReadingThe Almighty Dollar: Distribution of Income by Religion
SOURCE
Continue ReadingInternet Trends of 2017
SOURCE
Continue Reading




