On clicking a node in a tree, all the adjacent edges are turned on. Calculate min of clicks such that all the edges are turned on.
973You are given a singly linked list. How would you find out if it contains a loop or not without using temporary space?
TCS,
1110Given an array of integers, devise a program to replace every element with the next greatest element on the right side in the array. Also, replace the last element with 5 as there no element on the right side of it.
1076Post New Data Structures Questions
What is modcount in hashmap?
What is stack in geography?
How do I sort hashset?
What is data structure geeksforgeeks?
What is comparator interface used for?
What is circular queue in data structure?
What are some of the best practices relating to the java collection framework?
What is an algorithm in coding?
What is the application of queue?
How would you implement two stacks using a single array?
Define a set?
State the difference between primitive and non-primitive data types?
What is the difference between hashset and treeset?
What are the major data structures used in the network data model?
How can we delete the first node from the singly linked list?