Wednesday, November 9, 2016

Efficient data structure for storing and calculating the total resistance

Given a Circuit (with resistors), we need to calculate the total resistance. Input will be like AB-5ohm, BC-6ohm, BC-10ohm, BC-20 ohm, CD-5 ohm. BC has been repeated twice implying they are in series. "Write a program  by implementing efficient data structure for storing and calculating the total resistance

No comments:

Post a Comment