How to build a 3-input NAND gate from 2-input NAND gates or a 3-input NOR gate from 2-input NOR gate?
An alternate approach is given.







simulate this circuit &ndash; Schematic created using CircuitLab

The schematic represents the function:
$$Y = \overline{ABC} = \overline{\overline{\overline{AB}} C}$$