We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Implementation
- Larry's Array
- Discussions
Larry's Array
Larry's Array
Sort by
recency
|
354 Discussions
|
Please Login in order to post a comment
my answer in Typescript
string larrysArray(vector A) { int counter =0; for(int i=0;iA[j]){ counter++; } } } return (counter%2==0) ? "YES" : "NO"; } jinx manga
string larrysArray(vector A) { int counter =0; for(int i=0;iA[j]){ counter++; } } } return (counter%2==0) ? "YES" : "NO"; }
Here is my c++ solution
string larrysArray(vector A) { int count = 0; int n = A.size(); for(int i=0; iA[j]){ count++; } } }
if(count%2 == 0){ return "YES"; } return "NO"; }