sunny
BAN USER- 0of 0 votes
AnswersYou are part of a team that develops push notifications on an app (android/iOS). The push notifications are sent out for ads published by a marketing team from a data source that they own. Come up with the test plan/cases
- sunny in United States| Report Duplicate | Flag | PURGE
Amazon Quality Assurance Engineer Testing - 0of 0 votes
AnswersWith the best time complexity, please come up with a code to find the minimum delta of two elements from two different arrays of integers of different sizes - a[-3, 1, 999], b[-1, 2, 3]
- sunny in United States
Edit: Please dont forget the min delta can also be from b-a not just a-b| Report Duplicate | Flag | PURGE
Amazon Quality Assurance Engineer
import java.util.ArrayList;
import java.util.Queue;
import java.util.LinkedList;
public class ModifiedBFS {
Queue<BinaryTreeNode> q;
public int method(BinaryTreeNode root)
{
ArrayList<Integer> l = new ArrayList<Integer>();
//int[] count = new count[];
q.add(root);
int level =0;
int intems = 1;
l.add(level, intems);
while(q.isEmpty() != true)
{
BinaryTreeNode p = q.remove();
level++;
if(p.left != null)
{
q.add(p.left);
intems++;
}
if(p.right != null)
{
q.add(p.right);
intems++;
}
l.add(level, intems);
}
Integer max = l.get(0);
for(int i=0; i<level ;i++ )
{
if(max.compareTo(l.get(i)) <0)
{
max = l.get(i);
}
}
return l.indexOf(max);
}
}
What version of firefox is being used? Is it older than what youtube supports?
- sunny December 15, 2016