Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
Python
19.6K+ articles
Java
9.4K+ articles
Misc
7.7K+ articles
C++
3.8K+ articles
Python Programs
3.7K+ articles
Difference Between
3.1K+ articles
Solidity
112+ articles
Blockchain
92+ articles
java-swing
63+ articles
Programming Language
/
C++
C++
4.2K+ posts
Recent Articles
Popular Articles
Compiling CUDA Programs (NVCC)
Last Updated: 12 February 2026
The NVIDIA CUDA Compiler (NVCC) is the specialized driver used to transform CUDA C++ source code into executable programs. Because CUDA programs are "heterogeneous" meanin...
read more
C++
CUDA
Sequential Processing & Need for Parallelism
Last Updated: 11 February 2026
Sequential processing dominated early CPU design, where performance gains were achieved primarily through higher clock speeds and increased transistor density. Program exe...
read more
C++
CUDA
Setting Up Google Colab for CUDA
Last Updated: 11 February 2026
Google Colab provides a cloud-based environment that grants free access to NVIDIA GPUs. This makes it an ideal platform for developing and testing CUDA (Compute Unified De...
read more
C++
CUDA
Function Parameter and Pointers
Last Updated: 11 February 2026
In C++, pointers allow functions to access and modify the original data instead of working on copies. They provide better control over memory and parameter passing.Changes...
read more
C++
Floating point Manipulating Default Format
Last Updated: 11 February 2026
In C++, floating-point values are printed using a default format, but it can be customized for precision, style, and rounding using stream manipulators. These tools help c...
read more
C++
Array Parameters and Pointers
Last Updated: 11 February 2026
Arrays are often passed to functions as parameters in C++. However, since arrays decay into pointers when passed to a function, there are some subtle issues and limitation...
read more
C++
C Style String in C++
Last Updated: 12 February 2026
In C, a string is a character array terminated by a null character \0, making its size one more than the number of characters. C++ also supports this, and the compiler aut...
read more
C++
Sample Problem - Design a Data Structure Supporting Search, Insert, Delete, Floor, and Ceiling Operations
Last Updated: 12 February 2026
Design a data structure that efficiently supports the following operations:bool search(x): Checks if x is present in the container.void insert(x): Inserts x into the cont...
read more
C++
Structure(Pointer Array and Argument)
Last Updated: 12 February 2026
Structs are versatile in C++ programming and can be combined with pointers, arrays, and functions to create flexible and efficient programs. Structure PointersA pointer to...
read more
C++
Sample Problem: Design a DS for storing user balance
Last Updated: 12 February 2026
We need to design a data structure that stores user id and balance. In this data structure, we design two functions: set(id, balance): This function takes the user id and ...
read more
C++
Sample Problem: Design a DS for Prices with Duplicates allowed
Last Updated: 12 February 2026
We need to implement a data structure that supports the following operations:add(price, name): Insert an item with a given price.find(price): Retrieve all items with the g...
read more
C++
Sample Problem: Design a Data Structure for Item Prices
Last Updated: 12 February 2026
We are given a set of items and their prices. We need to design a data structure that efficiently performs the following operations:Add(price, item) - Insert an item with ...
read more
C++
Sample Problem: Design a Data Structure with Min/Max operations in O(1) time
Last Updated: 12 February 2026
Design a data structure that supports the following operations in O(1) time complexity.Operations:insertMin(x): We assume that the inserted item is always smaller than all...
read more
C++
Design a data structure with insert/replace and print operations
Last Updated: 12 February 2026
Design a data structure that supports the following operations on a sequence.insert(x): In this operation, we insert the value of x at the end of the data structure.replac...
read more
C++
More Examples of Lambda Expressions
Last Updated: 12 February 2026
Lambda expressions allow you to write unnamed inline function for small tasks. They are often used to pass a functionality to another functions. Examples show lambda usage...
read more
C++
C++
1
2
3
4
...
280