Post New MRF SAP SD (Sales & Distribution) Interview Questions
Is sap a product of hybris?
How to use the css binding in angular js?
How do you edit chart labels in excel?
what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba
Why is spring framework so famous?
What is a freezable?
explain in brief why do vsam take more disk space than other utilities?
What is the purpose of style sheets?
How kernal work in operating system?
What is the difference between unix timestamp and mysql timestamp?
What is report rendering ?
Tell me what is subrogation? : insurance sales
What is the best interpreter for python?
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
What is the use of a conditional inclusion statement in Java ?