NVIDIA Interview Question

Write a program to process a computational graph with addition and multiplication in c++

Interview Answer

Anonymous

Feb 25, 2020

Using overloaded operators and a node class with expression and literal subtypes. You overload operators for the expression class as well as the literal class where you either return the literal or further expand the expression