Tech Screening followed by Hacker Rank.
Tech Screening.. It was little in depth for me than general get to know you call. I was bit surprised but it was short call.
Hackerrank Challenge
This is a most weird HC Challenge I have faced so far. Reason, the HC Questions are test cases were not matching.
2 out of 5 question, I found TC itself was wrong... specially the SQL and the last question which ask the max Difference.
I think I failed because of Hacerrank.
Find the maxdiff between elements in a array such that i < j and a[i] < a[j].. Example [4,1,2,3]... max Diff is 2 between a[3] - a[1] = 2... if no such element exist.. return -1.
Hacerrank has this Test case which is complete BS..
Given array [5, 10, 7, 6, 4, 3, 1] and the expected output as -1.. How the hell? the max diff here is 5 as the diff array is [5, -1, -1 , -1, -1, -1].
Similarly, SQL question for listing name and count on descending order was faulted
I think nobody looks at the questions / TC