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
PHP | is_readable( ) Function
The is_readable() function in PHP used to check whether the specified file exists and is readable or not. The name of the file is sent as a parameter to the is_readable() ...
Read More
Web Technologies
PHP-function
PHP
Java Swing | Creating Custom Message Dialogs
Though Java Swing provides built-in message dialog to display messages, we can create custom message dialog by using JWindow and other Java Swing elements. The advantage o...
Read More
Java
Java Programs
java-swing
8086 program to generate AP series of n numbers
Problem - Write a program in 8086 microprocessor to generate arithmetic progression (AP) series of n eight bit numbers.Assumptions - Assume that size “n” is stored at offs...
Read More
system-programming
Computer Organization & Architecture
microprocessor
Java Swing | JList with examples
JList is part of Java Swing package . JList is a component that displays a set of Objects and allows the user to select one or more items . JList inherits JComponent class...
Read More
Java
java-swing
Starting with first Servlet Application
To get started with Servlets, let's first start with a simple Servlet application i.e LifeCycle application, that will demonstrate the implementation of the init(), servic...
Read More
Java
java-servlet
Find the only element that appears b times
Given an array where every element occurs 'a' times, except one element which occurs b (ab) times. Find the element that occurs b times.Examples:Input : arr[] = [1, 1, 2,...
Read More
Arrays
Hash
cpp-unordered_set
frequency-counting
DSA
Subtract 1 without arithmetic operators
Write a program to subtract one from a given number. The use of operators like ‘+’, ‘-‘, ‘*’, ‘/’, ‘++’, ‘–‘ …etc are not allowed.Examples:Input: 12Output: 11Input: 6Outpu...
Read More
Bit Magic
Mathematical
programming-puzzle
DSA
Add n binary strings
Given n binary strings, return their sum (also a binary string).Examples:Input: arr[] = ["11", "1"]Output: "100"Input : arr[] = ["1", "10", "11"]Output : "110" Recommende...
Read More
Strings
binary-string
DSA
Partition negative and positive without comparison with 0
Given an array of n integers, both negative and positive, partition them into two different arrays without comparing any element with 0.Examples:Input : arr[] = [1, -2, 6,...
Read More
Arrays
array-rearrange
cpp-vector
programming-puzzle
DSA
tellg() function in C++ with example
The tellg() function is used with input streams, and returns the current "get" position of the pointer in the stream. It has no parameters and returns a value of the membe...
Read More
C++
C++ Programs
cpp-stringstream
K-th smallest element after removing given integers from natural numbers | Set 2
Given an array arr[] of size ‘n’ and a positive integer k. Consider series of natural numbers and remove arr[0], arr[1], arr[2], …, arr[n-1] from it. Now the task is to fi...
Read More
Arrays
Mathematical
DSA
How to turn on a particular bit in a number?
Given a number n and a value k, turn on the k’th bit in n.Examples:Input: n = 4, k = 2Output: 6Input: n = 3, k = 3Output: 7Input: n = 64, k = 4Output: 72Input: n = 64,...
Read More
Bit Magic
DSA
Check if given number is a power of d where d is a power of 2
Given an integer n, find whether it is a power of d or not, where d is itself a power of 2.Examples:Input : n = 256, d = 16Output : YesInput : n = 32, d = 16Output : NoMet...
Read More
Bit Magic
Mathematical
maths-log
maths-power
DSA
Set the rightmost unset bit
Given a non-negative number n. The problem is to set the rightmost unset bit in the binary representation of nExamples:Input : 21Output : 23(21)10 = (10101)2Rightmost unse...
Read More
Bit Magic
DSA
DBS Interview Experience (Technical Associate Position for Freshers)
Below is my DBS (Asia's Largest Digital Bank), Hyderabad Interview Experience.Round 1: First round was an online coding round consisting of 14 questions to be completed i...
Read More
Interview Experiences
Experiences
1
...
11238
11239
11240
...
11561