Texas Instruments Interview Question

1 basic question of electrical circuit (draw I-R graph of a circuit having constant voltage source and variable resistor . 2 coding questions (swap 2 elements without using extra space , design a shortest path algorithm for a given circuit )

Interview Answers

Anonymous

Nov 7, 2015

V = IR, => I = V/R, v is constant so I is inversely proportional to R. As R is a variable resistor, let assume that the value of R changing from 0 to Inf. So the value of the current will starts at Inf and reaches to zero as R reaching to Inf. The curve is decreasing over the first quadrature.

Anonymous

Aug 19, 2015

I was not able to solve the shortest path problem & hence did not clear that round :(