Search results

  1. N

    [Data Structures] Can stack be searched or traversed?

    Assuming that the stack is implemented using array , is it okay to search or traverse the stack without actually popping the contents? I mean, wouldn't it defeat the purpose of stack itself since stack is a restricted data structure? Need to clear some doubts so I'll be very much obliged if...
Top Bottom