Category: c / c++
I was recently being asked by this question: How do you Design a Circular FIFO (First-In First-out) Buffer (Queue) in C? You need to implement two methods: fifoRead and …
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted …
Given a string which contains only letters. Sort it by lower case first and upper case second. Example: For “abAcD”, a reasonable answer is “acbAD”. Challenge: You should do …
Introduction This is a C++ coding test. It is expected that this task should take a few hours to complete. Task description Overview When designing graphics hardware it is …
What is a Garbage Collector in C# (what does it do). Are the objects automatically GC-ed in C#? If not, why/how? Are the structs automatically GC-ed in C#? Tell …