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.
- Zig Zag Sequence
- Discussions
Zig Zag Sequence
Zig Zag Sequence
Sort by
recency
|
972 Discussions
|
Please Login in order to post a comment
Can't be done for C, Might as well share my solution:
int compare(const void *a, const void b) { return ((const int *)a - *(const int *)b); }
int main() { int cases; scanf("%d", &cases); for (int k = 0; k< cases; k++) { int n; scanf("%d", &n); int *arr = malloc(n * sizeof(int)); int *final = malloc(n * sizeof(int));
for (int i = 0; i < n; i++) { scanf("%d", &arr[i]); }
}
Too stiff check.
In C++11 it allows the following set of changes:
but does allow the following:
Though the resulting output is exactly the same.
This one in C# asks to create to whole class but it fails... Am I getting negatives cuz of performance?
Typescript doesn't work, its missing the actual code...
The function isn't there when using R, just indicates where to write the code.