3)You are developing a defense system to protect Earth from all known alien species. There are N known alien species. You can defend against species i if your arsenal has a weapon that can defeat i . Given that, You can only use weapons present in your arsenal. Your arsenal is initially empty. You can become allies with any known alien species. The weapons of the ally will be added to your arsenal. You can be allied with exactly one alien species. This incurs no fast. You can defeat any known species if the weapons in your arsenal can defeat that species. Defeating a species j using the weapons of species i incurs a cost of Wi , ; If Wi , = - 1 , then the weapons of species i cannot defeat species j . species j ' s weapons will be added to your arsenal after their defeat. This step can be repeated.Determine the minimum total budget required to expand your arsenal such that you can defend against all known species. You need not defend against your ally.INPUT N - the number of known alien species W - the integer matrix of the cost of size N * NOUTPUTDetermine the minimum total budget required to expand our arsenal such that you can defend against all known species. Return - 1 if it's not possibl
Campus Representative Interview Questions
2,374 campus representative interview questions shared by candidates
Owens Corning like to make decision quickly. Talk about a case you made a quick decision and the consequence.
Programme to implement Permutation and combination of strings
Tell me about a time where you were unsatisfied with your resolution of an issue.
About global financial trends and impacts in past 5 years
What happens when you type google.com in a browser?
Describe a difficult situation you resolved in a previous workplace.
Write a code for a palindrome
Tell me something about your self? Tell me about your project? What languages you used to develop project
tell me something about yourself. Basics of networking and a bit of tricky questions to design a model sometimes. having CNN certification is a big boost.
Viewing 411 - 420 interview questions