Explanation:
Because social media attract us . Probably social
media is controlling our lives from many years.
Most people struggle to get away from social
media as it has made people lazy.
Answer:
A stack data structure should be used. The time complexity of the insert, delete minimum and maximum operation is O(1).
Explanation:
The stack data structure is an indexed structure that holds data in an easily retrievable way. Data is held in a first-in last-out method as elements in the structure are popped out from the end of the stack when retrieved sequentially.
The worst-case time complexity of getting the minimum and maximum elements in a stack and deleting it is O(1), this is also true for inserting elements in the stack data structure.
This is not a computers and technology question but ill still answer it and the answer to this that i think it is ...A ...but i may be wrong
Answer:
See explaination.
Explanation:
An algorithm is specifically defined as the step by step method or process of achieving any type of result.
Please kindly see the attached file for the C algorithm that fulfils the answer of the given problem.