Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff40293
commit 377920f
Showing
8 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// to be added |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// To Be Added |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// To Be added |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
![cover](./cover.png) | ||
|
||
# Day 40 - Prerfix, Infix, Postfix Conversion | ||
|
||
**Infix Expression**: The expression of the form a op b. When an operator is in-between every pair of operands. | ||
**Example**: ( (A * B) + (C / D) ) | ||
|
||
**Prefix Operation**: An expression is called the prefix expression if the operator appears in the expression before the operands. Simply of the form (operator operand1 operand2) | ||
**Example**: (+ (* A B) (/ C D) ) | ||
|
||
**Postfix Expression**: The expression of the form a b op. When an operator is followed for every pair of operands. | ||
**Example**: ( (A B *) (C D /) +) | ||
|
||
## Question 1 | ||
|
||
Convert an Infix Expression to a Postfix Expression | ||
|
||
**Hint**: https://www.geeksforgeeks.org/stack-set-2-infix-to-postfix/ | ||
|
||
## Question 2 | ||
|
||
Convert an Infix Expression to a Prefix Expression | ||
|
||
**Hint**: https://www.geeksforgeeks.org/infix-to-prefix-conversion-using-two-stacks/ | ||
|
||
## Question 3 | ||
|
||
Convert an Postfix Expression to a Infix Expression | ||
|
||
**HINT**: https://www.geeksforgeeks.org/postfix-to-infix/ | ||
|
||
## Solution to Question 1 | ||
|
||
### [JavaScript Implementation](./JavaScript/inToPost.js) | ||
|
||
```js | ||
// To Be Added | ||
``` | ||
|
||
## Solution to Question 2 | ||
|
||
### [JavaScript Implementation](./JavaScript/inToPre.js) | ||
|
||
```js | ||
// To Be Added | ||
``` | ||
|
||
## Solution to Question 3 | ||
|
||
### [JavaScript Implementation](./JavaScript/postToIn.js) | ||
|
||
```js | ||
// To Be Added | ||
``` |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.