jameshall886
BAN USER- 3 Answers What happens when H1B is rejected?
After getting offer from Amazon, the H1B has been rejected. I'm assuming that that means end of this opportunity. But I still wanted to check if anyone else has been in similar situation and what happened to them?
- jameshall886 May 23, 2014
Thanks!| Flag | PURGE - 1 Answer What happens when H1B is rejected?
After getting offer from Amazon, the H1B has been rejected. I'm assuming that that means end of this opportunity. But I still wanted to check if anyone else has been in similar situation and what happened to them?
- jameshall886 May 23, 2014
Thanks!| Flag | PURGE - 2 Answers What happens when H1B is rejected?
After getting offer from Amazon, the H1B has been rejected. I'm assuming that that means end of this opportunity. But I still wanted to check if anyone else has been in similar situation and what happened to them?
- jameshall886 May 23, 2014
Thanks!| Flag | PURGE
Sorry for multiple posts! server wasn't responding so I clicked several times. And I can't delete the repeated posts :(
- jameshall886 May 23, 2014bool IsBalanced(Node root)
{
int max = MaxDepth(curr);
int min = MinDepth(curr);
return max/min < 2;
}
int MaxDepth(Node curr)
{
if(curr == null) return 0;
return Math.Max(MaxDepth(curr.Left) + 1, MaxDepth(curr.Right) + 1);
}
int MinDepth(Node curr)
{
if(curr == null) return 0;
return Math.Min(MinDepth(curr.Left) + 1, MinDepth(curr.Right) + 1);
}
Sorry for multiple posts! server wasn't responding so I clicked several times. And I can't delete the repeated posts :(
- jameshall886 May 23, 2014