C++ 1-liner
cpp\nint arraySign(vector<int>& n) {\n    return count(begin(n), end(n), 0) ? 0 :\n        count_if(begin(n), end(n), [](int i) { return i < 0;}) % 2 ? -1 : 1;\
```cpp\nint arraySign(vector<int>& n) {\n    return count(begin(n), end(n), 0) ? 0 :\n        count_if(begin(n), end(n), [](int i) { return i < 0;}) % 2 ? -1 : 1;\n}\n```
[]