• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to secondary sidebar

GoHired

Interview Questions asked in Google, Microsoft, Amazon

Join WeekEnd Online Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

  • Home
  • Best Java Books
  • Algorithm
  • Internship
  • Certificates
  • About Us
  • Contact Us
  • Privacy Policy
  • Array
  • Stack
  • Queue
  • LinkedList
  • DP
  • Strings
  • Tree
  • Mathametical
  • Puzzles
  • Graph

Urban Ladder Written Test.

May 19, 2015 by Dhaval Dave

I have given Urban Ladder Online Test and my experience and questions are as below.

MCQ ROUND

Q1) An implementation of a queue Q, using two stacks S1 and S2, is given below:

void insert(Q, x) {
   push (S1, x);
} 
void delete(Q){
   if(stack-empty(S2)) then 
      if(stack-empty(S1)) then {
          print(“Q is empty”);
          return;
      }
      else while (!(stack-empty(S1))){
          x=pop(S1);
          push(S2,x);
      }
   x=pop(S2);
}

Let n insert and m (<=n) delete operations be performed in an arbitrary order on an empty queue Q. Let x and y be the number of push and pop operations performed respectively in the process. Which one of the following is true for all m and n?

Max. Marks 10.0
Q2)  If f, r are the front, rear indices respectively in a circular queue (implemented as array) then the condition (( f – r + size) % size == 1) && ((f != 0) || (r != -1)) represents
Max. Marks 10.0
 Q3)  Group A consists of X students and their total age is 221 and their average is an integer. When Group A is merged with Group B with twice the number of students (number of students between 30 and 40), average age of Group B is reduced by 1, what is the original age of Group B.
Max. Marks 10.0
Q4) What will be output when you will execute following c code?
#include<stdio.h>
#define var 3
int main(){
char *cricket[var+~0]={"clarke","kallis"};
char *ptr=cricket[1+~0];
printf("%c",*++ptr);
return 0;
}
Max. Marks 10.0

CODING ROUND

1 ) Print Fizz Buzz 

2) Wordify

Similar Articles

Filed Under: Hacker Earth Questions, Interview Experience

Reader Interactions

Primary Sidebar

Join WeekEnd Online/Offline Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

Join WeekEnd Online/Offline Batch from 4-April-2020

WhatsApp us

Secondary Sidebar

Custom Search

  • How I cracked AMAZON
  • LeetCode
  • Adobe
  • Amazon
  • Facebook
  • Microsoft
  • Hacker Earth
  • CSE Interview

Top Rated Questions

Maximum occurred Smallest integer in n ranges

Circular Linked List

Count Possible Decodings of a given Digit Sequence

Puzzle : 100 doors in a row Visit and Toggle the door. What state the door will be after nth pass ?

Python Array String

Python String and numbers

How Radix sort works

Interfaces in C++ (Abstract Classes in C++)

Trapping Rain Water

Given a sorted array and a number x, find the pair in array whose sum is closest to x

Generate largest number arranging a no. of given non negative integer numbers

Leetcode: Merge Intervals

Find Percentage of Words matching in Two Strings

Amazon Interview Experience – SDE Chennai

System Design: Designing a LLD for Hotel Booking

Check a String is SUBSEQUENCE of another String Find Minimum length for that ( DNA Matching )

Difference between a LinkedList and a Binary Search Tree BST

Find Nearest Minimum number in left side in O(n)

Binary Tree in Java

25 horses 5 tracks Find 3 fastest puzzle

Cisco Hiring Event 21st – 22nd Feb 2015

Printing Longest Common Subsequence

Introduction To Number Theory ( Part 1 )

Test Cases for Round Function

Top 10 Interviews Techniqes for Campus Interview in IIT NIT BITS for MTech

building with N steps, we can take 1,2,3 steps calculate number of ways to reach at top of building

Stock Buy Sell to Maximize Profit

K’th Largest Element in BST when modification to BST is not allowed

BFS (Breath First Search)

Given a string, find the first character which is non-repetitive

Copyright © 2026 · Genesis Framework · WordPress · Log in