Post New Amdocs Electronics Communications Interview Questions
What is the use of the quota compensation infotype (it-0416)?
How to get list of vms which are provisioned on a specific compute node?
Is angularjs a library, framework, plugin or browser extension?
how to check the user name who locked the table?
Can anyone send me NIC question papers alongwith answers on nidhi1485@yahoo.co.in? Urgently needed.. Thanks in advance
Can you mention some of the set-backs of sap?
How Cassandra provide High availability feature?
How are exception handled using apache camel?
What do you mean by Frame 5 Gas Turbine as well as Mark II.
Is a hashmap a dictionary?
Roads concatenation Problem
Consider we have some GIS (Geo Information System) operating
over some road network. Each road represented as array of
two-dimensional geographical points. Road network is a set
of roads.
System has function called Concatenate(). This function
takes raw road network and should return optimized road
network. Optimization lies in concatenating roads with
matching start or end points, i.e. if road AB end point
matches road BC start point, then optimized network should
contain concatenated road AC. Optimized network shouldn’t
contain two roads which can be concatenated.
Your task is to suggest set of test cases for Concatenate()
function in order to make sure it works correctly.
public interface IPoint
{
double Lat { get; }
double Lon { get; }
}
public Road : List
How to write the program on full-duplex communication on bidirectional?
What are programming features of R?
What is MIME type for JSON?
Can we change Replication Factor on a live cluster?