You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -159,6 +159,7 @@ TODO:
159
159
-[Implement a stack using arrays & linked-list](/stacks-and-queues/question1.c)
160
160
-[Implement a queue using circular array](/stacks-and-queues/question2.c)
161
161
-[Implement a queue using two stacks](/stacks-and-queues/question3.c)
162
+
-[](/stacks-and-queues/question4.c)
162
163
163
164
164
165
## Some important concepts to solve algos better
@@ -171,6 +172,8 @@ TODO:
171
172
- Linear hashing is (h(k) + i)modm (where m is the size of the hash table, h(k) is the hash function that takes the key k and returns a value i is the parameter that is incremented to get different values)
172
173
- Subarrays of an array are always contiguous whereas subsequence may not be contiguous
173
174
- There are only two ways to make any data structure one is to use an array (where size is fixed and memory is contiguous) OR you can use the heap memory (structures and linked list). So Array and linked list or combo of these two are used to implement any data structure. In most cases linked list takes more time to do operations if data structure is implemented using it. But advantage is dynamic memory allocation
175
+
- For INFIX to POSTFIX conversion, data structure used is stack. In stack all the operators are stored. For evaluation of POSTFIX stack is used to store operands
176
+
- Evaluating and expression = convert from INFIX to postfix --> Evaluate POSTFIX. Time complexity: O(n)
0 commit comments