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
Implementing of strtok() function in C++
The strtok() function is used in tokenizing a string based on a delimiter. It is present in the header file "string.h" and returns a pointer to the next token if present, ...
Read More
Strings
CPP-Library
cpp-string
C++
C++ Programs
DSA
MX Player Interview Experience for SDE
Round 1(Coding Assessment): Platform was Coderbyte. Two Coding questions in 1 hr:The Largest contiguous subarray sum.Given a string (e.g. ["(0,0),(2,2),(2,0),(0,2),(1,0),(...
Read More
Interview Experiences
MX Player
Experiences
Cogizant Genc Next Interview Experience
Round 1 Online Test (Debugging Code+ Aptitude Test): This round consisted of easy logical and mathematical aptitude questions that have to do within a time limit. You coul...
Read More
Interview Experiences
Cognizant
Cognizant-interview-experience
Experiences
Difference between Stack and Tree
Stack: A Stack is a linear data structure in which elements can be inserted and deleted only from one side of the list, called the top. Insertion is called push operation ...
Read More
Tree
Stack
Data Structures
Difference Between
DSA
Difference between Queue and Deque in C++
Queue: A Queue is a linear data structure that follows a First In First Out (FIFO) order in which the operations are performed. It is a type of container adaptor where ele...
Read More
Queue
C++
Difference Between
cpp-deque
deque
DSA
While loop with Compile time constants
While loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition. The while loop can be thought of as a repeating if st...
Read More
Misc
Articles
Java
Loops & Control Structure
How to insert data in the map of strings?
Maps are associative containers that store elements in a specific order. It stores elements in a combination of key values and mapped values.Syntax:mapdata type of key, da...
Read More
Strings
STL
C++
C++ Programs
cpp-map
DSA
TCS Ninja Interview Experience 2021 Batch(Virtual)
I had my NQT exam on 28th Oct 2020, and I got a mail telling me that I was selected for the next round i.e Interview.And I had my Interview on 5th December 2020 at 5 P.M, ...
Read More
Interview Experiences
TCS
TCS-interview-experience
TCS-Ninja
Experiences
Microsoft Interview Experience for SDE-1
One of my colleagues from a previous company at Microsoft has referred me for the SDE-1 position. And a month later they have called me and asked if I was available for an...
Read More
Microsoft
Interview Experiences
Experienced
Experiences
Count pairs with Even Product from two given arrays
Given two arrays, arr[] and brr[] of size N and M respectively, the task is to find the count of pairs (arr[i], brr[j]) such that the product of elements of the pairs is a...
Read More
Arrays
Greedy
Searching
Mathematical
frequency-counting
DSA
Implementing Interactive Online Shopping in C++
Online shopping is all about calculating the total amount for the items selected by the customer. In this article, we will discuss a menu-driven C++ program for Online Sho...
Read More
Project
Technical Scripter
C++
C++ Programs
Project-Ideas
Technical Scripter 2020
Construct longest possible sequence of unique elements with given LCM
Given a positive integer N, the task is to construct the longest sorted sequence of unique elements whose LCM of the is equal to N.Examples:Input: N = 12Output: 1 2 3 4 6 ...
Read More
Arrays
Mathematical
LCM
factor
Maths
DSA
GATE | Quiz for Sudo GATE 2021 | Question 30
Which of the following option(s) is/are correct ?(I) Function f(x) = x(x2 - 27) where x is a real number. Then the function has one minima and one maxima.(II) The Integral...
Read More
GATE
GATE | Quiz for Sudo GATE 2021 | Question 29
Two people, P and Q, decide to independently roll two identical dice, each with 6 faces, numbered 1 to 6. P succeeds if he rolls either a 1 or 2. Q succeeds is he rolls ei...
Read More
GATE
Print all array elements appearing more than N / K times
Given an array arr[] of size N and an integer K, the task is to find all the array elements that appear more than (N / K) times.Examples:Input: arr[] = { 1, 2, 6, 6, 6, 6,...
Read More
Arrays
Binary Search
Greedy
Divide and Conquer
Sorting
Hash
Arrays
C++ Programs
cpp-map
DSA
1
...
7013
7014
7015
...
11495