
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 33676 Articles for Programming

369 Views
In this article we are going to find the orientation of 3 ordered points. Here orientation means that the given points form clockwise, anticlockwise or collinear shape in space. In the above diagram a, b, c are the three points which check the orientation of shape in space. We find the orientation of three given points by calculating the slope. To calculate slope and to calculate the orientation of 3 ordered points. Slope of line segmentSlope of line segment $(a, b):\theta=\left ( y_{b}-y_{a} \right )/\left ( x_{b} -x_{a}\right )$ Slope of line segment $(b, c):\phi=\left ( y_{c} -y_{b}\right )/(x_{c}-x_{b})$ And ... Read More

5K+ Views
Matrices are nothing but a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. As per the problem statement the task is to check if the matrix is a magic square or not. A matrix is said to be a magic square if the sum of elements of any row, column or diagonal is equal to a specific number. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Suppose ... Read More

6K+ Views
Introduction The handling of duplicate values in datasets using Python is covered in this article. It defines duplicate values, shows how to spot them in a Pandas DataFrame, and offers many solutions for dealing with them, including removing duplicates, maintaining the first or last occurrence, and substituting alternative values for duplicates. The need of managing duplicate values is emphasized throughout the paper to support correct data analysis and machine learning models. In every project involving data analysis or machine learning, cleansing the data is a crucial step. The occurrence of duplicate values in datasets is one of the most prevalent ... Read More

891 Views
Structures in programming languages like C and C++ are a collection of related data fields, which can be accessed and manipulated as a single entity. They are often used to group related data items into a single variable, making it easier to manage and work with complex data structures. However, as code bases grow and evolve over time, it is not uncommon for structures and their members to become unused or redundant. These unused structures and members can clutter code and make it more difficult to understand, maintain, and update. In this article, we will discuss some ways to locate ... Read More

3K+ Views
Introduction The corrupt stack problem is a common issue that programmers encounter while developing software in C and C++ programming languages. This problem can arise due to a wide range of reasons and can cause severe problems in functioning of program. In this article, we will explore corrupt stack problem in detail and look at some examples of how it occurs. What is a Stack in C and C++? Before we discuss corrupt stack problem, we need to understand what a stack is. In C and C++, a stack is a data structure that allows data to be stored and ... Read More

257 Views
Matrices are nothing but a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. Involutory matrix is a square matrix which when multiplied by itself, gives back an identity matrix. Identity matrix is a matrix in which all elements are zero except the diagonals which are one. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Suppose we have a matrix | 1 0 ... Read More

2K+ Views
Matrices are nothing but it’s more than a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. A square matrix is called a Markov matrix if all entries are nonnegative and the sum of each column vector is equal to 1. The Markov matrix represents steps in a Markov chain. Each input of the Markov matrix represents the probability of an outcome. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some ... Read More

2K+ Views
Matrices are nothing but it’s more than a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. Identity matrix is a square matrix which has all 1s as its principal diagonal elements and rest are 0s. As per the problem statement we have to0 check if the given matrix is Identity matrix or not. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Suppose we have a matrix ... Read More

3K+ Views
Two elements giving the maximum sum in an array means, we have to find two largest array elements which will eventually give the maximum sum possible. In this article we will see how we can find the maximum sum of two elements in Java. To show you some instances Instance-1 Suppose we have the below array [10, 2, 3, -5, 99, 12, 0, -1] In this array the largest element is 99 and second largest is 12. Max sum = 99 + 12 Hence the maximum sum of two elements in this array is 111. Instance-2 Suppose we have the ... Read More

1K+ Views
Two elements giving the maximum product in an array means, we have to find two largest array elements which will eventually give the maximum product possible. In this article we will see how we can find the maximum product of two elements in Java. To show you some instances Instance-1 Suppose we have the below array [10, 2, 3, -5, 99, 12, 0, -1] In this array the largest element is 99 and second largest is 12. Max product = 99 * 12 Hence the maximum product of two elements in this array is 1188. Instance-2 Suppose we have the ... Read More