Message Queue in Linux
In Linux, a message queue is a data structure that is used for interprocess communication (IPC). A message queue allows processes to exchange messages, with each message consisting of a…
In Linux, a message queue is a data structure that is used for interprocess communication (IPC). A message queue allows processes to exchange messages, with each message consisting of a…
pipe() function in Linux is a system call that creates a new pipe. A pipe is a special type of file descriptor that is used to pass data between two…
A macro is a preprocessor directive that defines a constant value that can be used throughout the program. Macros are typically used to define constants that are used in multiple…
When we write the code and compile it then an executable is generated. This executable is flashed into MCU. After bootup the MCU starts working according to our written code
On 4th June 1966, Ariane 5 rocket was launched by European Space Agency. After 40 seconds of liftoff, it had exploded. It was an unmanned mission so no live was…
Sometimes we need to write code that should be very fast. Normally multiply/divide instructions are not so fast in C as compared to plus/minus instruction. Today, we will learn to…
"Volatile" is a qualifier in C. It is intended to prevent the optimization of the object that can change in manners that cannot be determined by compiler. The best example…
Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
Given a string s, find the length of the longest substring without repeating characters.
NOTE: This problem is generated by LeetCode. TakeTheNotes has given only solution for educational purpose. Problem Name: Add Two Numbers Description: You are given two non-empty linked lists representing two…