Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
GBlog
Complete DevOps Roadmap - Beginner to Advanced
DevOps is considered a set of practices that combines the abilities of Software Development i.e Dev and IT Operations i.e Ops together, which results in delivering top-not...
Read More
C Program to read contents of Whole File
C programming language supports four pre-defined functions to read contents from a file, defined in stdio.h header file:fgetc()- This function is used to read a single cha...
Read More
C Language
C-File Handling
C Programs
Puzzle | Four Card (A, D, 3, 6) | The Famous Four Card Task
Puzzle:Suppose there are four cards labeled with the letters A, B, C, and D and the numerals 3, 4, 5, and 6. It is known that every card has a letter on one side and a num...
Read More
Puzzles
Logical Puzzles
Difference between Struct and Enum in C/C++ with Examples
Structure in C++A structure is a user-defined data type in C/C++. A structure creates a data type that can be used to group items of possibly different types into a single...
Read More
C Language
C++
Difference Between
C-Struct-Union-Enum
pthread_getcpuclockid() function in C with Examples
The pthread_getcpuclockid() function returns the clock ID of the CPU-time clock from a specified thread.Syntax:int pthread_getcpuclockid (pthread_t id, clockid_t* clock_id...
Read More
C Language
C-Functions
Count of strings to be concatenated with a character having frequency greater than sum of others
Given an array arr[] containing N strings, the task is to find the maximum number of strings that can be concatenated such that one character has a frequency greater than ...
Read More
Strings
Hash
frequency-counting
DSA
Maximum possible balanced binary substring splits with at most cost K
Given a binary array arr[] and a value array val[]. The task is to find the maximum possible splits of the binary array that can be done such that each segment contains an...
Read More
Strings
Dynamic Programming
Mathematical
binary-string
substring
DSA
Javascript Program For Writing A Function To Delete A Linked List
A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations. The elements in a linked list are linked using pointers. Thi...
Read More
Linked List
Linked Lists
Delete a Linked List
Web Technologies
JavaScript
DSA
Python Program For Writing A Function To Delete A Linked List
Algorithm For Python:In Python, automatic garbage collection happens, so deleting a linked list is easy. Just need to change head to null.Implementation: [tabby title="Pyt...
Read More
Linked List
Linked Lists
Delete a Linked List
Python
Python Programs
DSA
Java Program For Writing A Function To Delete A Linked List
Algorithm For Java:In Java, automatic garbage collection happens, so deleting a linked list is easy. Just need to change head to null.Implementation:[tabby title="Java"][s...
Read More
Linked List
Linked Lists
Delete a Linked List
Java
Java Programs
DSA
C Program For Writing A Function To Delete A Linked List
Algorithm For C:Iterate through the linked list and delete all the nodes one by one. The main point here is not to access the next of the current pointer if the current po...
Read More
Linked List
Linked Lists
Delete a Linked List
C Language
C Programs
DSA
C++ Program For Writing A Function To Delete A Linked List
Algorithm For C++:Iterate through the linked list and delete all the nodes one by one. The main point here is not to access the next of the current pointer if the current ...
Read More
Linked List
Linked Lists
Delete a Linked List
C++
C++ Programs
DSA
Set the amount of vertical space between legend groups using Plotly-Python
In this article, we will learn how to set the amount of vertical space between legend groups.A legend is an area describing the elements of the graph. In the plotly legend...
Read More
Python
Python-Plotly
Minimum increments done in Array such that arr[i] can make all other elements equal
Given an array arr[] of N size, the task is to find the minimum increment required to elements in the array such that if any element says arr[i] is distributed among the o...
Read More
Arrays
Mathematical
DSA
Minimum steps to determine the subsequence with max 1s based on given conditions
Given a string S of size N consisting of '0', '1' and '?', where N is always even. Divide the string into two different strings say S1 and S2, where S1 will only contain t...
Read More
Strings
subsequence
Game Theory
Recursion
DSA
Count of pairs in given Array with product of their values equal to sum of their indices (arr[i]*arr[j] = i+j)
Given an array arr[] of length N with distinct integers from 1 to 2*N, the task is to count the number of pairs of indices (i, j) such that (i j) and arr[i] * arr[j] = i ...
Read More
Arrays
Mathematical
sieve
DSA
1
...
4725
4726
4727
...
10993