C & C++ questions and answers
Pointers, memory, templates and the standard library. Page 3 of 9.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 121-180
- Does stdcopy handle overlapping ranges?
- Does stdcopy_n work with overlapping ranges?
- Does stdsort implement Quicksort?
- Does the C volatile keyword introduce a memory fence?
- Does the range-based 'for' loop deprecate many simple algorithms?
- Duplicate a LinkedList with a pointer to a random node apart from the next node
- Easiest way of using min priority queue with key update in C
- Efficient Algorithm for Bit Reversal from MSB-LSB to LSB-MSB in C
- Efficient set intersection of a collection of sets in C
- Efficient way of iterating over true bits in stdbitset?
- Efficient way to filter out elements from stdvector
- Emulate double using 2 floats
- Erasing elements in stdvector by using indexes
- Error Microsoft Visual C 14.0 is required Unable to find vcvarsall.bat
- error static assertion failed stdthread arguments must be invocable after conversion to rvalues
- Error when refering to the pointer to a structure after using memcpy()
- Example for boost shared_mutex multiple reads/one write?
- Export Python TensorFlow model and import it in C
- Export Tensorflow graphs from Python for use in C
- Fast ceiling of an integer division in C / C
- fast efficient least squares fit algorithm in C?
- Fast inverse square of double in C/C
- Faster to malloc multiple small times or few large times?
- Fastest code C/C to select the median in a set of 27 floating point values
- find a cost optimized path through a grid/matrix in c
- Find if vector contains pair with second element equal to X
- Find maximum of three number in C without using conditional statement and ternary operator
- Find rectangle with the largest sum of integers that lies on its border in C
- Finding curvature from a noisy set of data points using 2d/3dsplines? C
- Finding if a string is an iterative substring Algorithm in C?
- function objects versus function pointers
- Generate all strings under length N in C
- Generate Non-Degenerate Point Set in 2D - C
- Generating combinations in C
- Generating random number between -1, 1 in C?
- Generic C multidimensional iterators
- Get the status of a stdfuture
- Getting the actual length of a UTF-8 encoded stdstring?
- Given a string, find two identical subsequences with consecutive indexes C
- Group the numbers C
- gRPC cpp async server vs sync server
- Hashing of pointer values
- Hidden Markov Models with C
- How can I benchmark the performance of C code?
- How can I concatenate two arrays in C?
- How can I distinguish between high- and low-performance cores/threads in C?
- How can I fix my C code that determines whether a number is prime?
- How can I generate sorted uniformly distributed random numbers efficiently in C?
- How can I get my C code to automatically print out its Git version hash?
- How can I get the list of files in a directory using C or C++?
- How can I make an algorithm in C for finding variations of a set without repetition i.e. n elements, choose k?
- How can I make my managed NuGet package support C/CLI projects?
- How can I pass a substring by reference?
- How can I sort a stdmap first by value, then by key?
- How can I sort an STL map by value?
- How can I use something like stdvectorstdmutex?
- How can memory_order_relaxed work for incrementing atomic reference counts in smart pointers?
- How can stdmake_heap be implemented while making at most 3N comparisons?
- How can stdvector access elements with huge gaps between them?
- How can you get the Linux thread Id of a stdthread
.png&w=3840&q=75)
Free course
Beginner
7 lessons
2 hours
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free course