
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 26504 Articles for Server Side Programming

2K+ Views
In this article, we will learn a python program to sort the matrix row-wise and column-wise. Assume we have taken an input MxM matrix. We will now sort the given input matrix row-wise and column-wise using the nested for loop. Algorithm (Steps) Following are the Algorithms/steps to be followed to perform the desired task. − Create a function sortingMatrixByRow() to sort each row of matrix i.e, row-wise by accepting input matrix, m(no of rows) as arguments. Inside the function, use the for loop to traverse through the rows of a matrix. Use Another nested for loop to traverse ... Read More

8K+ Views
In this article, we will learn how to remove elements larger than a specific value from a list in Python. Methods Used The following are the various methods used to accomplish this task − Using remove() Method Using List Comprehension Using the filter() method & lambda function Method 1: Using remove() Method remove() function(removes the first occurrence of the element from the list) Algorithm (Steps) Following are the Algorithms/steps to be followed to perform the desired task. − Create a variable to store the input list. Create another variable to store another input value. Use the for ... Read More

12K+ Views
In this article, we will learn a python program to remove leading zeros from a number given as a string. Assume we have taken a number in string format. We will now remove all the leading zeros(zeros present at the beginning of a number) using the below-given methods. Methods Used The following are the various methods used to accomplish this task − Using For Loop and remove() function Using Regex Using int() Function Method 1: Using For Loop and remove() function Algorithm (Steps) Following are the Algorithms/steps to be followed to perform the desired task. − Create ... Read More

2K+ Views
In this article, we will learn a python program to print a matrix in a snake pattern. Assume we have taken the n x n matrix. We will now print the input matrix in a snake pattern using the below-mentioned methods. Methods Used The following are the various methods used to accomplish this task − Using the nested for loop Reversing Alternate Rows Using Slicing Intuition We will iterate through all the rows of a matrix. For each row, we will now check whether it is even or odd. If the row is even, then will print the ... Read More

3K+ Views
In this article, we will learn a python program to find the sum of a sublist. Methods Used The following are the various methods to accomplish this task − Using For Loop(Brute Code) Using Cumulative Sum Method Using sum() Function Using math.fsum() Function Using For Loop (Brute Code) Algorithm (Steps) Following are the Algorithm/steps to be followed to perform the desired task. − Create a variable to store the input list. Create two separate variables for storing the start and the end indices. Initialize a variable resultSum to 0 for storing the resultant sum of a sublist. ... Read More

5K+ Views
In this article, we will learn a Python Program to Convert Singular to Plural. Assume you are given a singular word and we must convert it into plural using the various python methods. Methods Used The following are the various methods to accomplish this task − Using the regex module Using NLTK and Pattern-en Packages Using the Textblob module Using inflect module Method 1: Using the regex module The regex module in python searches for a string or group of strings based on a specified pattern. In case it doesn't already exist in your Python you must install ... Read More

156 Views
In this article, we will learn a python program to check Involutory Matrix. Assume we have taken an input matrix. We will now check whether the input matrix is an Involutory Matrix using the below methods. Methos Used The following are the various methods to accomplish this task − Using Nested For Loop Using NumPy module What is an Involutory Matrix? If a matrix multiplies by itself and gives the identity matrix, it is said to be an involutory matrix. The matrix that is its inverse is the involutory matrix. If A * A = I, matrix A ... Read More

447 Views
In this article, we will learn a python program for a number of local extrema in an array. An extrema is an element that is either greater than or less than both of its neighbors. Assume we have taken an array containing n elements. We will now find the count of a number of local extrema in a specified input array. Note The first and last elements are not extrema. Using For loop NOTE Both array[0] and array[n-1] have only one neighbor each, hence they are neither minima nor maxima. len() − The number of items in an ... Read More

589 Views
Additive Secret Sharing and Share Proactivization are cryptographic techniques to share a password or other confidential data among a group of people. In this article, we will explain these techniques and implement Python code to demonstrate them. Additive Secret Sharing Additive secret sharing is a technique used in cryptography to share a secret string or a password among multiple parties, such that all of the parties must collaborate to reconstruct the secret. For example: Original Secret Key: 1234 Generated five Shares: [-488, -55, -417, -720, 2914] Reconstructed Secret: 1234 Explanation: The original secret password is split into 5 ... Read More

739 Views
In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to check if a sub array is formed by consecutive integers from a given array of integers. The sub array refers to some segment of the array from an array. Here it has been told to check the subarray formed by consecutive integers elements i.e., the array elements are a set of continuous numbers where we can get one after another element. Let’s explore the article to see how it can be done by ... Read More