• 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

N teams are participating. each team plays twice with all other teams. Some of them will go to the semi final. Find Minimum and Maximum number of matches that a team has to win to qualify for finals ?

December 14, 2014 by Dhaval Dave

Consider above question with specific input.
Consider a series in which 8 teams are participating. Each team plays twice with all other teams.
4 of them will go to the semi final.
Minimum and Maximum how many matches should a team win, so that it will ensure that it will go to semi finals ?


Solution :
Lets consider that with each win , team gets 1 point.
8 teams play match against each other so 56 matches, so series consist of 56 points

Lets distribute and find minimum and maximum..
Say Teams are T1,T2….T7,T8.

To calculate Maximum points that a team can win and qualify for finals, lets best case consider scenario.

T8 wins all games and gets 14 points.
T7 wins all against T0 to T6 looses against T8 only, so T1 has 12 points
like wise …
T6 : 10
T5 : 8
T4 : 6
T3 : 4 (Won against T1,T0)
T2 : 2 (Won just against T1)
T1 : 0 (Lost all matches)

So Maximum a team can have is 14 points
If N teams are participating : TN team wins all 2*(n-1) games so 2*(n-1) points.
Where 2 is number of time each team plays against other team.

To Calculate Minimum points…Lets  consider worst case scenario

redistributing above mentioned points

T8 : 10
T7 : 10
T6 : 10
T5 : 10
T4 : 10
T3 : 4
T2 : 2
T1 : 0
This is most worst case that can happen but as in semifinals only 4 team goes,
minimum can be 11 points as follows

T8 : 11
T7 : 11
T6 : 11
T5 : 11
T4 : 6
T3 : 4
T2 : 2
T1 : 0

So Minimum is 11, so that a team will surely go into semifinals….

Now lets consider scenario where with minimum points a team qualified for semis.

T8 : 14
T7 : 13
T6 : 12
T5 : 5
T4 : 3
T3 : 3
T2 : 3
T1 : 3

Here Team 5, could get just 5 but could qualify for Semis.

Comment for any other options..

Question was asked in Kony Labs Interview for SDE-I.

Similar Articles

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

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

Stickler thief

Trie Dictionary

Python Dictionaries

Minimum insertions to form a palindrome

Print Power Set of a Set

Find the smallest window in a string containing all characters of another string

Leetcode: Merge Intervals

N Petrol bunks or City arranged in circle. You have Fuel and distance between petrol bunks. Is it possible to find starting point so that we can travel all Petrol Bunks

Maximum occurred Smallest integer in n ranges

SAP Off Campus Hiring_ March 2015 Verbal Skills

There are N nuts and N bolts, u have to find all the pairs of nuts and bolts in minimum no. of iteration

Rectangular chocolate bar Create at least one piece which consists of exactly nTiles tiles

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

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

Reversal of LinkedList

Connect n ropes with minimum cost

Right view of Binary tree

Given Set of words or A String find whether chain is possible from these words or not

Find shortest distances between every pair of vertices ( Dynamic Programming Floyd Warshall Algorithm)

Check Binary Tree is Binary Search Tree or not

strtok()

Length of the longest substring without repeating characters

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

BFS (Breath First Search)

Python String and numbers

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

Urban Ladder Written Test.

Linked List V/S Binary Search Tree

ADOBE Aptitude C Language Test

Apriori algorithm C Code Data Mining

Copyright © 2025 · Genesis Framework · WordPress · Log in