Singly Linked List, Its Advantage, Disadvantage and Application
Advantage and Disadvantage of Linked Lists Advantages: Disadvantages: Applications of Linked Lists
Advantage and Disadvantage of Linked Lists Advantages: Disadvantages: Applications of Linked Lists
Both Array and Linked List are used to store the data having a similar type, but the difference is that array takes memory locations in contiguous fashion at compile-time, i.e. when we declare of an array, while elements of the linked list take memory, not in contiguous fashion and takes memory at runtime. Array VS … Read more
A sparse matrix is a type of matrix filled mostly with zeros. Think of a huge whiteboard where only a few spots are marked, and the rest is blank. There are several types of sparse matrices, but let’s talk about its types : lower triangular, upper triangular and Tri-diagonal sparse matrices. Three types of Sparse … Read more
Matrix is defined with a 2-dimensional array that has row and column. An array which has ‘m’ rows and ‘n’ columns represent an mXn matrix. Sometimes it happens when a matrix has zero values is more than NON-ZERO values. The matrix which has a greater number of zero values in comparison to the non-zero values … Read more
Column Major Order is a way to represent the multidimensional array in sequential memory. It has similar functionality as row-major order, but the way of process is different. In Column Major Order, elements of a multidimensional array are arranged sequentially column-wise which means filling all the index of the first column and then move to … Read more
In this tutorial, you will learn writing program for how to remove duplicates from an array Python. To remove duplicate elements from an array first we will count the occurrence of all elements. After finding occurrence we will print elements only one time and can get element after removing duplicates. Also Read This : Java … Read more
In this tutorial, you will learn how to write Python program to find second largest number in an array. To find the second largest element, First sort the given array in ascending order. Then select the second last element from the list. It may happen similar number repeating two times, then also check two number … Read more
In this tutorial, you will learn how to write Python program to find largest and smallest number in an array. To find largest and smallest in an array we find compare each elements to each other and find which one is greatest and which one is smallest. In this program we have taken two variable … Read more
In this tutorial, you will learn how to write Python program to compare two arrays and check that they are equal in size or not. In Python, arrays (often implemented as lists) are used frequently to store sequences of items. Sometimes, we need to check if two arrays are the same size. This means making … Read more
In this tutorial, you will learn how to find duplicates number in an given array. After finding duplicates we will print the how many time that element has repeated. In this Program we will first count the occurrence of all the elements which is present in Array. And then we will print only those elements … Read more