Real-life applications of Various Data Structures.
A thread👇
✨ STACK 1) UNDO option
2) Text editor, you push letter by letter to the stack so you erase back.
3) Recursion (in built stack)
✨QUEUE 1) Your browser deletes the history past one month.
2) All the pictures you delete from your phone will be stored in a queue, so that after sometimes front items can be popped out easily (permanently deleted)
3) Waiting list: Registration Requests are put in the queue.
✨LINKED-LIST 1) Browser's Next and Previous Button: a linked list of URLS
2) music player where you can play next or previous song. (Doubly linked list).
3) In ludo game, it had pass the turn to each player in circular fashion (circular linked list).
✨TREES 1) File system: Folders and subfolders (N-ary tree).
✨Introduction
-> Bitwise Operations let you manipulate numbers at bit level. Bitwise operations are faster than regular operations.
There are main 6 bitwise operators:
1)Bitwise AND
2)Bitwise OR
3)Bitwise XOR
4)Bitwise left-shift
5)Bitwise right-shift
6)Bitwise complement
✨Bitwise AND
-> The Bitwise AND tests 2 binary numbers and returns bit values of 1 for positions where both numbers had a one, and a bit value of 0 at every other position.