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
Frontend Developer Roadmap 2024
Frontend development means to design the face of a website or application. It involves working on the appearance of the website. Building interactive buttons, using images...
Read More
10 Myths About Software Development
There are many myths and false assumptions that continue to loom around software development. Even though the first programming language, Fortran, was created in 1957 and ...
Read More
Misc
GBlog
Print all triplets in sorted array that form AP
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :Input : arr[] = { 2, 6, 9, 12, 17, 22, 31, 32, 35,...
Read More
Arrays
Misc
Searching
Hash
cpp-unordered_set
arithmetic progression
DSA
Collections.nCopies() in Java
The role of Collections.nCopies() is to return an immutable list which contains n copies of given object. This function helps if we want to create a list with n copies of ...
Read More
Misc
Java
Java-Collections
Python String format_map() Method
Python String format_map() method is an inbuilt function in Python, which is used to return a dictionary key's value.Syntax:string.format_map(z)Parameters:Here z is a vari...
Read More
Python
python-dict
Python-Built-in-functions
python-string
Count special palindromes in a String
Given a String s, count all special palindromic substrings of size greater than 1. A Substring is called special palindromic substring if all the characters in the substri...
Read More
Strings
palindrome
DSA
Writing files in background in Python
How to write files in the background in Python?The idea is to use multi-threading in Python. It allows us to write files in the background while working on another operati...
Read More
Python
Find nth number that contains the digit k or divisible by k.
You have given two number n and k. You need to find the n-th number that contains the digit k or divisible by k (2 = k =9 ).Examples:Input : n = 15, k = 3Output ...
Read More
Mathematical
number-digits
DSA
Converting seconds into days, hours, minutes and seconds
Given an integer n(in seconds).Convert it into days, hours, minutes and seconds.Examples:Input : 369121517Output : 4272 days 5 hours 45 minutes 17 secondsInput : 129600Out...
Read More
Misc
Mathematical
date-time-program
DSA
Basic Coding Problems
Maximum number of partitions that can be sorted individually to make sorted
Given an array arr[] of size n such that elements of arr[] in range [0, 1, ..n-1] where every number is present at most once. Our task is to divide the array into maximum ...
Read More
Arrays
Sorting
DSA
Big O Notation Tutorial - A Guide to Big O Analysis
Big O notation is a powerful tool used in computer science to describe the time complexity or space complexity of algorithms. It provides a standardized way to compare the...
Read More
Algorithms
Analysis of Algorithms
Algorithms-Analysis of Algorithms
DSA
halt, poweroff and reboot Commands in Linux
Below are typical uses of halt, poweroff and reboot. halt : Instructs hardware to stop CPU functions. poweroff : Instructs the system to power down. reboot : Re...
Read More
Misc
linux-command
Linux-Unix
Linux-system-commands
SQL Server Mathematical functions (SQRT, PI, SQUARE, ROUND, CEILING & FLOOR)
Mathematical functions are present in SQL server which can be used to perform mathematical calculations. Some commonly used mathematical functions are given below:1. SQRT(...
Read More
SQL
SQL-Functions
Amazon Interview Experience | Set 424 (For SDE 2)
Round 0: Online Coding Test (90 Min - 4 Coding Questions)Run length encodingInput : aaaaaabbOutput : a5b2Input :aaaaabcccOutput :a5bc3Linked List pair sum countInput : lis...
Read More
Amazon
Interview Experiences
Experienced
Experiences
SAP Labs Interview Experience for Internship
Round 1: Round 1 was online test. Which contains three sections. In first section there are two coding questions for which we have to write whole code. one question was v...
Read More
Interview Experiences
Internship
SEP
Experiences
bad_alloc in C++
Prerequisite : Exceptions in C++Standard C++ contains several built-in exception classes. The most commonly used is bad_alloc, which is thrown if an error occurs when atte...
Read More
cpp-exception
C++
1
...
11166
11167
11168
...
11291