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
Check if two arrays can be made equal by reversing any subarray once
Given two arrays A[] and B[] of equal size N, the task is to check whether A[] can be made equal to B[] by reversing any sub-array of A only once.Examples:Input: A[] = {1,...
Read More
Arrays
Searching
Reverse
subarray
Data Structures
DSA
First number to leave an odd remainder after repetitive division by 2
Given two integers A and B, the task is to print the integer among the two, which will be converted to an odd integer by a smaller number of divisions by 2. If both the nu...
Read More
Bit Magic
setBitCount
Pattern Searching
Mathematical
Competitive Programming
divisibility
number-theory
DSA
Longest substring that starts with X and ends with Y
Given a string str, two characters X and Y. The task is to find the length of the longest substring that starts with X and ends with Y. It is given that there always exist...
Read More
Strings
Greedy
Searching
Competitive Programming
cpp-string
C++ Programs
substring
DSA
Find side of Square which makes minimal area to fit two identical rectangles inside it
Given height H, and width W, of a rectangle, the task is to find the side of a square of the minimum area in which two rectangles fit completely.Note:Two rectangles can to...
Read More
Mathematical
Geometric
Competitive Programming
square-rectangle
DSA
Thread Safety and how to achieve it in Java
As we know Java has a feature, Multithreading, which is a process of running multiple threads simultaneously. When multiple threads are working on the same data, and the v...
Read More
Java
Java-Multithreading
Different dataset forms in Social Networks
Prerequisite: Python BasicsFor constructing any network we need a good dataset and every network has a different format for data of datasets. Basically a dataset is nothin...
Read More
Machine Learning
AI-ML-DS
Ordinary Least Squares (OLS) using statsmodels
In this article, we will use Python's statsmodels module to implement Ordinary Least Squares(OLS) method of linear regression.Introduction :A linear regression model estab...
Read More
data-science
python
Data Science
Understanding Nonlinear Regression with Examples
In this article, we will see some examples of non-linear regression in machine learning that are generally used in regression analysis, the reason being that most of the r...
Read More
Computer Subject
Python Programs
Machine Learning
python
AI-ML-DS
Commonly used file formats in Data Science
What is a File FormatFile formats are designed to store specific types of information, such as CSV, XLSX etc. The file format also tells the computer how to display or pro...
Read More
Python
Python pandas-basics
Python pandas-datatypes
data-science
Print all possible palindromic string formed using any pair of given strings
Given an array of strings arr[] containing N words, the task is to print all possible palindromic string by combining any two strings from the given array.Examples:Input: ...
Read More
Arrays
Strings
Hash
palindrome
DSA
Find indices of all local maxima and local minima in an Array
Given an array arr[] of integers. The task is to find the indices of all local minima and local maxima in the given array.Examples:Input: arr = [100, 180, 260, 310, 40, 53...
Read More
Arrays
Mathematical
School Programming
Arrays
school-programming
DSA
Check if it is possible to reach (x, y) from origin in exactly Z steps using only plus movements
Given a point (x, y), the task is to check if it is possible to reach from origin to (x, y) in exactly Z steps. From a given point (x, y) we can only moves in four directi...
Read More
Pattern Searching
Mathematical
DSA
Smallest N digit number with none of its digits as its divisor
Given an integer N. The task is to find the smallest N digit number S, such that S is not divisible by any of its digits. Print -1 if no such number is possible.Examples:I...
Read More
Mathematical
number-digits
divisors
DSA
Minimum steps to convert X to Y by repeated division and multiplication
Given two integers X and Y, the task is to find the minimum number of steps to convert integer X to Y using any of the operations in each step:Divide the number by any nat...
Read More
Mathematical
School Programming
DSA
Guessing the Number Game using Android Studio
A Simple Guess the number application in which application generates the random number between 1 to 100 and the user has to guess that Number. It is a simple and basic app...
Read More
Java
android 1
Project
Technical Scripter
1
...
7946
7947
7948
...
11543