Category: c / c++
Given two 32-bit integers N and M, write a function to replace N (between bits position i and j) with M, so M becomes a substring of N located …
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 …