Category: c / c++
This is a classic interview question: You are asked to write a function that returns a bigger number of both, without using any comparison operator, such as if, or …
According to Wiki, the big endian or small endian are two ways of storing bytes of data e.g. 32-bit integer in memory locations. For Big Endian Representations, the Most …
Given a string (you may assume it is lowercase letters only), your task is to find out the first unique letter and return its index. If it does not …
You are given two strings s and t. String t is generated by random shuffling string s and then add one more letter at a random position. Return the …
C++11 (formerly named C++0x) has some great new features to improve the code efficiency such as the use of auto which is the same as the var in C#, …