236

Senior Mobile Developer interview questions shared by candidates

Top Interview Questions

Sort: Relevance|Popular|Date
Senior Mobile Software Engineer for AWS was asked...May 19, 2013

Hardest Q was: Here's a binary tree: find the longest path within it. So, find a path between any two leaf nodes, where the path is the longest.

class Solution{ int ans[] = new int[1]; //O(n) public int efficientDia(TreeNode root) { if(root == null) return 0; int left = efficientDia(root.left); int right = efficientDia(root.right); ans[0] = Math.max(ans[0], 1 + left+ right); return 1+ Math.max(left, right); } //O(n^2) public int getDiameter(TreeNode root) { if(root == null) return 0; int leftHeight = getHeight(root.left); int rightHeight = getHeight(root.right); if(ans[0] &lt; 1 + leftHeight + rightHeight) { ans[0] = 1 + leftHeight + rightHeight; } return Math.max(getDiameter(root.left), getDiameter(root.right)); } Less

int ans[] = new int[1]; //O(n) public int efficientDia(TreeNode root) { if(root == null) return 0; int left = efficientDia(root.left); int right = efficientDia(root.right); ans[0] = Math.max(ans[0], 1 + left+ right); return 1+ Math.max(left, right); } //O(n^2) public int getDiameter(TreeNode root) { if(root == null) return 0; int leftHeight = getHeight(root.left); int rightHeight = getHeight(root.right); if(ans[0] &lt; 1 + leftHeight + rightHeight) { ans[0] = 1 + leftHeight + rightHeight; } return Math.max(getDiameter(root.left), getDiameter(root.right)); } private int getHeight(TreeNode root) { // TODO Auto-generated method stub if(root == null) return 0; return Math.max(getHeight(root.left), getHeight(root.right))+1; } Less

Indians at all companies always ask tree questions, it makes them giggle inside. I know, because I'm half indian and have interviewed people... tee hee hee Less

How do you deal with sensitive financial data of a user on your device?

The device keychain. There were many questions, where even if you answered that you did not have experience in this avenue, what or how would you go about it? Less

Hi.Could you please tell the questions that are asked for you for this role.I have an interview this friday and it would be a great help.Thanks alot Less

Why do you want to leave your current company? You should not leave your current company. If we hire you we will won't give you more then 20k to your annual salary.

I was speechless as I don't know how to react after I have done their telephone &amp; face to face rounds successfully. Less

Na

I explained .

Almost all

String to Interger conversion

Design Social Networking app

Do you develop with Xamarin Forms?

Yes I have developed several projects with Forms.