# Tag Archives: Data Structures

I recently applied to Cisco Internship for the role: Software Engineer â€“ Network/Embedded/Application Development. It consisted of the following rounds: Round 1 (Online Assessment): Thisâ€¦ Read More
Given an array, our task is to Reverse all prime numbers in an array without affecting other elements in Python. Examples: Input : arr =â€¦ Read More
Given an array, write a program to find the sum of cubes of alternative even numbers in an array. Examples: Input : arr = {1,â€¦ Read More
Given a string S of length N (1 â‰¤ N â‰¤ 103) that consists of a digit from ‘0’ to ‘9’, the task is toâ€¦ Read More
Given a permutation A[] of first N integers (i.e. array contains integers from 1 to N exactly once) and an integer K, the task isâ€¦ Read More
Given an array A[] of N integers, the task is to find the minimum number of operations to sort the array in non-decreasing order, byâ€¦ Read More
Given two binary strings S and T of size N and M respectively, the task is to check if S can be converted into Tâ€¦ Read More
What is TCS NQT ? TCS NQT is National Qualifier Test conducted by Tata Consultancy Services, it is a prerequisite for all the tests. Theâ€¦ Read More
The pushâ€“relabel algorithm (alternatively, pre flowâ€“push algorithm) is an algorithm for computing maximum flows in a flow network. Push-relabel algorithms work in a more localizedâ€¦ Read More
Overview :This article will make you aware about Encapsulation & Decapsulation, and their differences. In any type transmission of data, it is very important toâ€¦ Read More
Two strings are said to be isomorphic if it is possible to map every character of the first string to every character of the secondâ€¦ Read More
Mother vertex: A mother vertex in a Graph G = (V, E) is a vertex v such that all other vertices in  G can beâ€¦ Read More
Given a binary tree, the task is to compress all the nodes on the same vertical line into a single node such that if theâ€¦ Read More
An Orthogonal Linked List is a data structure composed of fundamental elements called Nodes (similar to linked lists). Each node in an orthogonal Linked Listâ€¦ Read More
Given an N-ary tree consisting of N nodes numbered from 1 to N rooted at node 1, the task is to assign values to eachâ€¦ Read More