Tag: C/C++ coding exercise
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 …
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 …
Two strings are both lowercase letters. Write a function to determine if one string can be constructed using the letters from the other string. For example: canConstruct("aa", "ab") = …
This is a leetcode puzzle: You can submit your solutions to this URL: https://leetcode.com/problems/move-zeroes/ Given an array nums, write a function to move all 0’s to the end of …