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
Tag Archives: Data Structures
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