Skip to content

Conversation

@AryamanMishra
Copy link
Contributor

No description provided.

@sonarqubecloud
Copy link

@javadev
Copy link
Owner

javadev commented May 23, 2022

Please create a new branch for a task.

It may be faster solution

class Solution { public int finalValueAfterOperations(String[] operations) { int xValue = 0; for(String word: operations){ if(word.contains("+")) xValue++; else xValue--; } return xValue; } } 
@AryamanMishra
Copy link
Contributor Author

Please create a new branch for a task.

It may be faster solution

class Solution { public int finalValueAfterOperations(String[] operations) { int xValue = 0; for(String word: operations){ if(word.contains("+")) xValue++; else xValue--; } return xValue; } } 

Yes Sir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants