The process consisted of 2 technical rounds, each lasting 45 minutes.
Given:
N tasks.i has an execution time time[i].(u, v) meaning task v can start only after task u has completed.Return:
-1 if the dependency graph contains a cycle.Each tool supports a set of file formats and can convert between any pair of formats supported by that tool.
Example:
ToolA : [pdf, docx, txt]
ToolB : [txt, jpg]
ToolC : [jpg, png]
source = pdf
target = pngOutput:
3
[ToolA, ToolB, ToolC]Find the minimum number of tools required to convert the source format into the target format and return one valid sequence of tools used.
Verdict: Rejected