Partner Community

#### How does a pipe() work in Linux

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…

#### Difference between a macro and a const

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…

#### Types of memory segments in embedded systems

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

#### How Can A Data Conversion Bug Cost US\$370 Million?

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…

#### C – Multiply integers without using multiply operation

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…

#### Why we have “Volatile” in C?

"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…

#### Leet code | Problem 4: Median of Two Sorted Arrays

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)).

#### Leet code | Problem 3: Longest Substring Without Repeating Characters

Given a string s, find the length of the longest substring without repeating characters.

#### Leet code | Problem 2: Add Two Numbers

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…

#### Leet code | Problem 1: Two-sum

NOTE: This problem is generated by LeetCode. TakeTheNotes has given only solution for educational purpose. Problem Name: Two Sum Description: Given an array of integers nums and an integer target, return indices of the…