• 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

problem

Inorder and Preorder traversals of a Binary Tree given. Output the Postorder traversal of it.

March 25, 2014 by Dhaval Dave

Generate Postorder traversal of Tree from Inorder and Preorder traversal of tree without generating Tree.

Input:
In-order traversal in[] = {4, 2, 5, 1, 3, 6}
Pre-order traversal pre[] = {1, 2, 4, 5, 3, 
… Read More

Filed Under: Adobe Interview Questions, Interview Questions, Microsoft Interview Questions, problem Tagged With: Binary Tree, tree

Given a float number convert it into the string WITHOUT using any inbuilt Function

March 25, 2014 by Dhaval Dave

Convert a floating point number to string

Given a float number convert it into the string WITHOUT using any inbuilt Function

Method 1:

class Float2String 
{ 
   public static void main(String[] args) 
   { 
      float f=7.64f; 
      String 
… Read More

Filed Under: Amazon Interview Question, problem Tagged With: string

Get K Max and Delete K Max in stream of incoming integers

March 25, 2014 by Dhaval Dave

Get K Max and Delete K Max in stream of Incoming Integers

Solution 1 : Using Min Heap
Algorithm :

1) Keep a Min & Max Heap of K size
2) Store first K elements 
… Read More

Filed Under: Adobe Interview Questions, Amazon Interview Question, Interview Questions, Microsoft Interview Questions, problem Tagged With: Linked List, Max Heap, Min Heap

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

March 24, 2014 by Dhaval Dave

Given n stairs, how many number of ways can you climb if u use either 1, 2 or 3 at a time?

When you find any difficult problem first step is to reduce it to
… Read More

Filed Under: Adobe Interview Questions, problem, Puzzle Tagged With: Mathematical

write a c program that given a set a of n numbers and another number x determines whether or not there exist two elements in s whose sum is exactly x

March 24, 2014 by Dhaval Dave

Given an array A[] and a number x, check for pair in A[] with sum as x

Write a C program that, given an array A[] of n numbers and another number x, determines whether
… Read More

Filed Under: Adobe Interview Questions, Flipkart Interview Questions, Interview Questions, problem Tagged With: Array, Sorting

strtok()

March 21, 2014 by Dhaval Dave

Function Strtok

char * strtok ( char * str, const char * delimiters );
What it does : Split string into tokens
A sequence of calls to this function split str into tokens,
which are

… Read More

Filed Under: problem Tagged With: Array, string

Implement a generic binary search algorithm for Integer Double String etc

March 20, 2014 by Dhaval Dave

A Simple Binary Search for Integers

BinarySearch(A[0..N-1], value) 
{
   low = 0
   high = N - 1
   while (low <= high) {
       mid = low + ((high - low) / 2)
       if (A[mid] > value)
           
… Read More

Filed Under: problem Tagged With: algorithm

Linked List V/S Binary Search Tree

March 19, 2014 by Dhaval Dave

Linked List :

Node(1) -> Node(2) -> Node(3) -> Node(4) -> Node(5) -> Node(6) -> Node(7)
  • In linked list, the items are linked together through a single next pointer.
  • Next Node’s Key Can be larger
… Read More

Filed Under: problem Tagged With: Binary Search Tree, BST, Linked List

Binary Tree in Java

March 19, 2014 by Dhaval Dave

Implementation of Binary Tree in Java Language.

import java.io.*;
import java.util.*;
class Node
   {
   public int iData;              // data item (key)
   public double dData;           // data item
   public Node leftChild;         // this node's left child
   
… Read More

Filed Under: problem Tagged With: Binary Tree, Java

Spanning Tree

March 1, 2014 by Dhaval Dave

In the mathematical field of graph theory, a spanning tree T of a connected, undirected graph G is a tree that includes all of the vertices and some or all of the edges of G.

… Read More

Filed Under: problem Tagged With: Graph, tree

  • « Previous Page
  • Page 1
  • …
  • Page 9
  • Page 10
  • Page 11
  • Page 12
  • Next Page »

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

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

LeetCode: Binary Tree Maximum Path Sum

Daughter’s Age VeryGood Puzzle

Maximum difference between two elements s.t larger element appears after the smaller number

Code Chef PRGIFT Solution

Calculate price of parking from parking start end time prices

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

Connect n ropes with minimum cost

Find the element that appears once others appears thrice

Difference between a LinkedList and a Binary Search Tree BST

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

Circular Linked List

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

Longest Increasing Subsequence

SAP Off Campus Hiring_ March 2015 Sample Questions

SAP Off Campus Hiring_ March 2015 Verbal Skills

Maximum of all subarrays of size k

FizzBuzz Solution C C++

Find if two rectangles overlap

Number of Islands BFS/DFS

Convert number to words java

Maximum size of square sub matrix with all 1’s in a binary matrix

How strtok() Works

Python List

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

C Program for TAIL command of UNIX

LeetCode : Word Search

Flipkart SDET Interview Experience

Templates in C++

LeetCode: Container With Most Water

Copyright © 2025 · Genesis Framework · WordPress · Log in