Alok
BAN USER- 0of 0 votes
AnswersFind if there is a cycle in a list of parent-child tuples.
- Alok in United States
You are given a list of tuples
(a,b) => a is parent of b
(b,c) => b is parent of c
(c, d) => c is parent of d
(d, a) => d is parent of a ----> Cycle detected..
Implement a Java method.| Report Duplicate | Flag | PURGE
ADP Java Developer - -1of 1 vote
AnswersYou are given parent-child relationships. Your goal is to find find the data is cyclical.
- Alok in United States
(a,b) => a is a parent of b
(b, c) => b is a parent of c
(c, a) => c is a parent of a ... Oops! Cycle found!
public bool hasCycle(List<String, String> input);| Report Duplicate | Flag | PURGE
ADP Java Developer Algorithm - 0of 0 votes
AnswersYou are given several thousand - two member tuples of compatible entries.
- Alok in United States
Your goal is to find the longest list of compatible entries
i.e.
(a,b) => a is compatible with b
(b,d) => b is compatible with d
(d, e) => d is compatible with e
Longest list a,b,d,e| Report Duplicate | Flag | PURGE
Software Engineer / Developer Algorithm
Sounds like a school project in Java programming
- Alok May 25, 2014