Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
-Wall
int mystery(const int *x, int n, int y, int z) { int ans = 0; for (int i = 0; i < n-1; ++i) { if (x[i] == y) { if (x[i+1] == z) { ++ans } } } return ans; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
14th Dec Project1 v0.4
A141212_OrdenarArrayPorFunciones
Command Expressions in Gnu C: What's the value of a loop? void!
141128_EjemploChorraArray
Linked List
recurs2
Building squares using smallest amount of matches
C assignment due sunday
C_141106_Divisores
Don't ignore warnings
Please log in to post a comment.