Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign updynamic programming #1742
Open
dynamic programming #1742
Conversation
Create primitive_calculator
Create placing parenthesis
| @@ -0,0 +1,27 @@ | |||
| import java.util.Scanner; | |||
|
|
|||
| public class PlacingParentheses { | |||
akashchandwani
Oct 11, 2020
Please use proper file name for this file - PlacingParentheses.java
Please use proper file name for this file - PlacingParentheses.java
| public static void main(String[] args) { | ||
| Scanner scanner = new Scanner(System.in); | ||
| String exp = scanner.next(); | ||
| System.out.println(getMaximValue(exp)); |
akashchandwani
Oct 11, 2020
getMaximValue(exp) always returns 0
getMaximValue(exp) always returns 0
| @@ -0,0 +1,27 @@ | |||
| import java.util.Scanner; | |||
|
|
|||
akashchandwani
Oct 11, 2020
Please provide description of what this algorithms solves.
Please provide description of what this algorithms solves.
| @@ -0,0 +1,29 @@ | |||
| import java.util.*; | |||
|
|
|||
| public class PrimitiveCalculator { | |||
akashchandwani
Oct 11, 2020
Above comments applicable to this file as well.
Above comments applicable to this file as well.
| return 0; | ||
| } | ||
|
|
||
| private static long eval(long a, long b, char op) { |
akashchandwani
Oct 11, 2020
How is this algorithm in Dynamic Programming?
How is this algorithm in Dynamic Programming?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
I have added two efficient program 1) primitive calculator 2) placing parenthesis