Tag: C++ coding exercise
The C is the subset of C++ and hence many C programmers that come from embedded background claim they can write proper C++ code. So here is a task …
Given a list of intervals denoted with (start, end), implement a function that returns true if none of these intervals overlap. Definition of Intervals A interval can be defined …
Given an array of integers of size N. The array should originally store numbers from 1 to N, however, during transmission, one of the number is duplicated to another …
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted from left …
Given an array of integers – find out the maximum product of the tree numbers in the array. For example, output: and , output 24. We can easily write …