
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

259 Views
In C++ we have a predefined function sqrt that returns the square root of any number. The Rotating Caliper’s Method is the technique used to solve the algorithmic or computational geometry. Visual Representation of Rotating Caliper’s MethodThe hand rotation shows the real example of a rotating caliper graph, whenever the hand rotates the perpendicular direction is shown. We can also understand this concept by using a polygon shape. In this article, we are going to find the maximum distance of two coordinate points using Rotating Caliper’s Method. Syntax The following syntax used in the program − vector name ... Read More

630 Views
A matrix is a rectangular array where the set of numbers arranged in rows and columns. And it is called as an m X n matrix where m and n are the dimensions. If a matrix contains a very less number of non-zero elements compared to the zero elements then it is called a sparse matrix. [0, 0, 3, 0, 0] [0, 1, 0, 0, 6] [1, 0, 0, 9, 0] [0, 0, 2, 0, 0] The above matrix is 4X5 matrix here most of the numbers are zero. Only a few elements are non-zero so that we can ... Read More

2K+ Views
A matrix is a two-dimensional array of many numbers arranged in rows and columns. A square matrix (whose rows and columns has same number of elements) has two diagonals. One is the Primary diagonal - located from the top left corner to the bottom right corner of a square matrix. And the second one is the Secondary diagonal - located from the top right to the bottom left corner. For a square matrix if all the elements below the Primary diagonal are zero then it is called the Upper Triangular Matrix. [1, 3, 4] [0, 5, 6] [0, ... Read More

2K+ Views
Linear search is the simplest method of searching for an element in an array. It is a sequential searching algorithm that starts from one end and checks every element of the array until the desired element is found. Recursion means a function that calls itself, while using a recusive function we need to use any loop to generate the iterations. The below syntax demonistrates the working of a simple recursion function. def rerecursiveFun(): Statements ... rerecursiveFun() ... rerecursiveFun Linear Search of an Element ... Read More

1K+ Views
Non-blocking Server Java NIO (New Input/Output) is a very powerful networking and file-handling application that functions as an alternative to Java's standard IO API. Due to the addition of more sophisticated features since JDK 4's introduction, it has quickly emerged as the preferred I/O system among numerous engineers. The improved support it offers for file handling and file system features is one of the features that distinguish Java NIO. Since the NIO file classes have such incredible capabilities, it is extensively used in file handling. If you look closely, you'll notice that java.nio package specifies the buffer classes employed by ... Read More

313 Views
A matrix is a two-dimensional array of many numbers arranged in rows and columns. And it is called as m X n matrix where m and n are the dimensions. In general, the multiplication of two matrices can be possible only if the number of columns in the first matrix is equal to the number of rows in the second matrix. Input Output Scenarios Assuming we have two input matrices A and B having 3X3 rows and columns. Then the resultant matrix will also have 3 rows and 3 column. [a, b, c] [j, k, l] [(a*j+b*m+c*p), (a*k+b*n+c*q), (a*l+b*o+c*r)] [d, ... Read More

412 Views
Overview of Node.js vs Java Java has been a long-standing favorite for programmers worldwide, while Node.js is a relatively new JavaScript runtime environment. This article delves into the differences between Node.js and Java and aims to provide a better understanding of both tools and their respective applications. While we may never settle the question of which is ultimately better, gaining insight into these powerful tools can help us make informed decisions about where and when to use them. What Is Node.js? In 2009, Ryan Dahl created Node.js, a cross-platform JavaScript (JS) runtime environment that enables developers to use JavaScript on ... Read More

2K+ Views
A matrix is defined as a set of numbers arranged in rows and columns. A matrix with m rows and n columns is called an m X n matrix and m and n are called its dimensions. A matrix is a two dimensional array, which is created by using lists or NumPy arrays in python. The Trace of a Matrix The trace of a matrix is defined as the sum of its diagonal elements (i.e, elements from upper left to lower right ). Calculating the Trace of a matrix can be possible only for a square matrix (i.e., the matrix ... Read More

1K+ Views
Overview of Object Model Have you ever thought about how software programs can see and communicate with the components that make them up? The object model is useful in this situation. Developers can represent those components as objects using sophisticated object-oriented techniques thanks to a strong system or interface. The object model is actually so crucial to software development that it's frequently one of the first stages. The object model establishes the framework for a reliable, adaptable, and scalable application design by defining crucial features like inheritance and encapsulation. Are you set to learn more about object-oriented programming? Objects and ... Read More

1K+ Views
Numbers in Java It's important to understand that the number class isn't a tangible class, but rather an abstract one. Inside it, we have a set of wrapper classes that define its functions. These wrapper classes include Integer, Byte, Double, Short, Float, and Long. You may notice that these are the same primitive data types we previously discussed, but they're represented as individual classes with capitalized names in keeping with class naming conventions. The compiler automatically converts primitive data types into objects and vice versa, based on the requirements of a particular function or program scope, and the number class ... Read More