In computer science, which fundamental data structure operates on the principle of “Last-In, First-Out” (LIFO)?
💡 Explanation:
A Stack is a data structure where the last element added is the first one to be removed, following the LIFO principle. Think of a stack of plates, where you remove the top (last added) plate first. In contrast, a Queue follows a FIFO (First-In, First-Out) principle.