I am posting all question asked in coding challenge with hints/solutions so that it can help others
- https://leetcode.com/discuss/interview-question/1764999/ServiceNow-or-OA-or-Tree-Question
- https://leetcode.com/discuss/interview-question/1764959/ServiceNow-or-OA-or-Question
- Given an array of integers (both positive negative and zero) you have to find the number of subsequence such that product of maximum and mimum elememt is zero
hint ( take two cases when 0 is maximum element and 0 is minimum element.
For 0 is maximum element we can only take negative numbers answer will be (2^zero-1)*2^negative element
For 0 is maximum element we can only take negative numbers answer will be (2^zero-1)*2^positive element
-1 is the case when we dont have included any zero element ( 0 is c ompulsory to take)
- https://leetcode.com/discuss/interview-question/1767826/ServiceNow-OA