Category Archives: C

What’s your favorite, C or C++? Which one is better? Especially in embedded system. Why?

Since moving to firmware development three years back, I’ve been using only C. The reason most people prefer C to C++ in programming embedded system is, IMHO, there are not much benefits we can earn from C++. Even worse, by … Continue reading

Posted in C, C++, Technical Interview | Tagged | Leave a comment

Contains Duplicate

Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct. Difficulty: Easy The … Continue reading

Posted in Algorithms, C | Tagged , , | Leave a comment