← Questions

C++ layer graph API: code review, an FFN block, layer scheduling

0
NvidiaCodingLast asked Nov 2026

A coding interview question asked in Nvidia's technical phone screen, last asked Nov 2026. It tests c++, code review and topological sort.

A C++ class Network models a neural net as layers connected in a graph. It has two methods: addLayer puts a layer into the network, and addLayerOutput says that one layer's output feeds another layer.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

c++ · code review · topological sort · graphs

Your code and the AI tutor open when you unlock this question.