Skip to content

Category Archives: Python Programs

Given a list of objects, the task is to write a Python program to get the object with the max attribute value in a list… Read More
Given a list, the task is to write a Python program to check if the value exists in the list or not using the lambda… Read More
Given two linked lists that represent two large positive numbers. Subtract the smaller number from the larger one and return the difference as a linked… Read More
Given a matrix and the task is to check matrix is involutory matrix or not. Involutory Matrix: A matrix is said to be involutory matrix if… Read More
Given a N * N matrix and the task is to check matrix is idempotent matrix or not.Idempotent matrix: A matrix is said to be… Read More
Given a linked list and a number n. Find the sum of the last n nodes of the linked list.Constraints: 0 8->4->12, n = 2… Read More
Introduction to Identity Matrix :  The dictionary definition of an Identity Matrix is a square matrix in which all the elements of the principal or… Read More
Given a linked list containing n nodes. The problem is to insert a new node with data x at the middle of the list. If… Read More
Given a singly linked list, find middle of the linked list and set middle node of the linked list at beginning of the linked list. Examples:… Read More
Given two sorted arrays of distinct elements, we need to print those elements from both arrays that are not common. The output should be printed… Read More
Given a n x n matrix. The problem is to sort the matrix row-wise and column wise.Examples:   Input : mat[][] = { {4, 1, 3},… Read More
Given a n × m binary matrix, count the number of sets where a set can be formed one or more same values in a… Read More
Given a 4 x 4 matrix, we have to interchange the elements of first and last row and show the resulting matrix.Examples :   Input :… Read More
Given a n x n matrix. The problem is to sort the given matrix in strict order. Here strict order means that matrix is sorted… Read More
Given a 2D square matrix, find the sum of elements in Principal and Secondary diagonals. For example, consider the following 4 X 4 input matrix. … Read More

Start Your Coding Journey Now!