cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
need help.
need help.
Nov 2, 2014 at 4:40am UTC
abanbedi
(1)
solution(int X, vector<int> &A) {
int eq = 0, neq = 0;
for (int i = 0; i < A.size(); ++i)
neq += A[i] != X;
}
How do I write this code in C#.
specially neq += A[I] != X;
Thanks
Topic archived. No new replies allowed.