The earlier you land up to the industry which interests you, the better it is for your carrer. I landed up into analytics industry by chance. When I joined my first firm, I was aware what analytics means, but did not really know how big is the opportunity to grow in this industry. Now, I know that things happened for the best (although by chance). Analytics industry relies on extensive use of statistics and Data handling tools. But, these skills are really not expected from freshers moving into this domain. Hence, it becomes really difficult for the employers to conclude if a candidate will do well in the industry or not. Primarily what they are interested in is the number crunching skills and the structured thinking capabilities.
To gauge these skills, employer generally use any of the following three types of questions :
There are hundreds of questions on this topic and tips to crack them in the ‘Ace Data Science Interviews‘ course. It’s a great place to understand the different aspects that go into cracking these interviews and set yourself up for success!
We have published a number of articles on the approaches to take in solving Business Case study and Guess estimate problems. However, we have still not covered the first category of questions i.e. Puzzles. Puzzles are not the ideal way to judge analytical skills because you will be able to solve the question, if you already know it. Solving from scratch is the tougher bit.
Because there are a limited number / type of puzzles which are in use, knowing / practicing them before hand can really become your strength in analytics interviews. In this article, we will solve three widely asked puzzle questions in these interviews.
Take the Test: Should I become a Data Scientist?
Two trains X and Y (80 km from each other) are running towards each other on the same track with a speed of 40km/hr. A bird starts from the train X and travels towards train Y with constant speed of 100km/hr. Once it reaches train Y, it turns and starts moving toward train X. It does this till the two trains collides with each other. Find the total distance traveled by the bird?
[/stextbox]Maximum time to solve the puzzle : 1 Minutes
Difficulty level of the puzzle : Low
What is the interviewer looking for : Your approach. If you start calculating distance from X to Y and the Y to X and so on, you have already been rejected.
Solution : Velocity of approach for the two trains = (40 + 40) km/hr
Total time the trains will take to collide = 80km/80km/hr = 1 hour
Total distance travelled by the bird = 100km/hr * 1hr = 100 km.
Must Read: The definitive guide to prepare for analytics interviews
You have two beakers – one of 4 liters and other of 5 liters. You are expected to pour exactly 7 liters in a bucket. How will you complete the task?
[/stextbox]Maximum time to solve the puzzle : 2 Minutes
Difficulty level of the puzzle : Medium
What is the interviewer looking for : Answer.
Solution :
Step 1 : Fill in 5 liter beaker and empty it in the 4 liter beaker. You are left with 1 liter in the 5 liter beaker. Pour this 1 liter in the bucket.
Step 2 : Repeat step 1 and you will have 2 liters in the bucket.
Step 3 : Fill in the 5 liter beaker and add to the bucket.You now have 7 liters in the bucket.
Must Read: How freshers can crack interviews for business analytics roles?
There are 5 pirates in a ship. Pirates have hierarchy C1, C2, C3, C4 and C5.C1 designation is the highest and C5 is the lowest. These pirates have three characteristics : a. Every pirate is so greedy that he can even take lives to make more money. b. Every pirate desperately wants to stay alive. c. They are all very intelligent.
There are total 100 gold coins on the ship. The person with the highest designation on the deck is expected to make the distribution. If the majority on the deck does not agree to the distribution proposed, the highest designation pirate will be thrown out of the ship (or simply killed). Only the person with the highest designation can be killed at any moment. What is the right distribution of the coins proposed by the captain so that he is not killed and does make maximum amount?
[/stextbox]Maximum time to solve the puzzle : 15 Minutes
Difficulty level of the puzzle : High
What is the interviewer looking for : Your approach and solution structure.
Solution : The solution of this problem lies in thinking through what will happen if all the pirates were thrown one by one and then thinking in reverse order.
Let us name pirates as A,B,C,D and E in hierarchy (A being highest).
If only D and E are left at end, D will simply give 0 coins to E and still escape because majority cannot be reached. Hence, even if E gets 1 coin he will give his vote to the distributor.
If C, D and E are there on the deck, C will simply give one coin to E to get his vote. And D simply gets nothing. Hence, even if D gets 1 coin he will give his vote to the distributor.
If B,C,D and E are there on the deck, B will simply give one coin to D to get his vote. C & E simply gets nothing.
If A,B,C,D and E are there on the deck, A simply gives 1 coin each to C and E to get their votes.
Hence, in the final solution A gets 98 coins and only C & E get 1 coin each.
Must Read: All you need to know to start a career in business analytics.
If you were able to solve all the 3 puzzles, (from scratch) you have a good hunch for such puzzles. In case you were not able to crack the last one, you simply need to practice more. In case you were not able to crack two of the puzzles within time limits, you need to solve different variety of puzzles to get a nag of these types of questions. Puzzles are good way to exercise your brain. We will publish more such puzzles in future, so stay tuned.
Did you find the article useful? How many questions were you able to solve? How much time did you take to solve each? What do you think of the difficulty level of these puzzles?
Tavish Srivastava, co-founder and Chief Strategy Officer of Analytics Vidhya, is an IIT Madras graduate and a passionate data-science professional with 8+ years of diverse experience in markets including the US, India and Singapore, domains including Digital Acquisitions, Customer Servicing and Customer Management, and industry including Retail Banking, Credit Cards and Insurance. He is fascinated by the idea of artificial intelligence inspired by human intelligence and enjoys every discussion, theory or even movie related to this idea.
Commonly asked interview puzzles – Part II
20 Challenging Job Interview Puzzles which eve...
Definitive guide to prepare for an analytics in...
Tips for freshers to crack campus interviews fo...
How to Train your Mind for Analytical Thinking
The Most Comprehensive Data Science & Mach...
Frequently Asked Data Science Interview Questions
How freshers can ace interviews for Business An...
An analytics interview case study
4 tricky SAS questions commonly asked in interview
We use cookies essential for this site to function well. Please click to help us improve its usefulness with additional cookies. Learn about our use of cookies in our Privacy Policy & Cookies Policy.
Show details
This site uses cookies to ensure that you get the best experience possible. To learn more about how we use cookies, please refer to our Privacy Policy & Cookies Policy.
It is needed for personalizing the website.
Expiry: Session
Type: HTTP
This cookie is used to prevent Cross-site request forgery (often abbreviated as CSRF) attacks of the website
Expiry: Session
Type: HTTPS
Preserves the login/logout state of users across the whole site.
Expiry: Session
Type: HTTPS
Preserves users' states across page requests.
Expiry: Session
Type: HTTPS
Google One-Tap login adds this g_state cookie to set the user status on how they interact with the One-Tap modal.
Expiry: 365 days
Type: HTTP
Used by Microsoft Clarity, to store and track visits across websites.
Expiry: 1 Year
Type: HTTP
Used by Microsoft Clarity, Persists the Clarity User ID and preferences, unique to that site, on the browser. This ensures that behavior in subsequent visits to the same site will be attributed to the same user ID.
Expiry: 1 Year
Type: HTTP
Used by Microsoft Clarity, Connects multiple page views by a user into a single Clarity session recording.
Expiry: 1 Day
Type: HTTP
Collects user data is specifically adapted to the user or device. The user can also be followed outside of the loaded website, creating a picture of the visitor's behavior.
Expiry: 2 Years
Type: HTTP
Use to measure the use of the website for internal analytics
Expiry: 1 Years
Type: HTTP
The cookie is set by embedded Microsoft Clarity scripts. The purpose of this cookie is for heatmap and session recording.
Expiry: 1 Year
Type: HTTP
Collected user data is specifically adapted to the user or device. The user can also be followed outside of the loaded website, creating a picture of the visitor's behavior.
Expiry: 2 Months
Type: HTTP
This cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected includes the number of visitors, the source where they have come from, and the pages visited in an anonymous form.
Expiry: 399 Days
Type: HTTP
Used by Google Analytics, to store and count pageviews.
Expiry: 399 Days
Type: HTTP
Used by Google Analytics to collect data on the number of times a user has visited the website as well as dates for the first and most recent visit.
Expiry: 1 Day
Type: HTTP
Used to send data to Google Analytics about the visitor's device and behavior. Tracks the visitor across devices and marketing channels.
Expiry: Session
Type: PIXEL
cookies ensure that requests within a browsing session are made by the user, and not by other sites.
Expiry: 6 Months
Type: HTTP
use the cookie when customers want to make a referral from their gmail contacts; it helps auth the gmail account.
Expiry: 2 Years
Type: HTTP
This cookie is set by DoubleClick (which is owned by Google) to determine if the website visitor's browser supports cookies.
Expiry: 1 Year
Type: HTTP
this is used to send push notification using webengage.
Expiry: 1 Year
Type: HTTP
used by webenage to track auth of webenagage.
Expiry: Session
Type: HTTP
Linkedin sets this cookie to registers statistical data on users' behavior on the website for internal analytics.
Expiry: 1 Day
Type: HTTP
Use to maintain an anonymous user session by the server.
Expiry: 1 Year
Type: HTTP
Used as part of the LinkedIn Remember Me feature and is set when a user clicks Remember Me on the device to make it easier for him or her to sign in to that device.
Expiry: 1 Year
Type: HTTP
Used to store information about the time a sync with the lms_analytics cookie took place for users in the Designated Countries.
Expiry: 6 Months
Type: HTTP
Used to store information about the time a sync with the AnalyticsSyncHistory cookie took place for users in the Designated Countries.
Expiry: 6 Months
Type: HTTP
Cookie used for Sign-in with Linkedin and/or to allow for the Linkedin follow feature.
Expiry: 6 Months
Type: HTTP
allow for the Linkedin follow feature.
Expiry: 1 Year
Type: HTTP
often used to identify you, including your name, interests, and previous activity.
Expiry: 2 Months
Type: HTTP
Tracks the time that the previous page took to load
Expiry: Session
Type: HTTP
Used to remember a user's language setting to ensure LinkedIn.com displays in the language selected by the user in their settings
Expiry: Session
Type: HTTP
Tracks percent of page viewed
Expiry: Session
Type: HTTP
Indicates the start of a session for Adobe Experience Cloud
Expiry: Session
Type: HTTP
Provides page name value (URL) for use by Adobe Analytics
Expiry: Session
Type: HTTP
Used to retain and fetch time since last visit in Adobe Analytics
Expiry: 6 Months
Type: HTTP
Remembers a user's display preference/theme setting
Expiry: 6 Months
Type: HTTP
Remembers which users have updated their display / theme preferences
Expiry: 6 Months
Type: HTTP
Used by Google Adsense, to store and track conversions.
Expiry: 3 Months
Type: HTTP
Save certain preferences, for example the number of search results per page or activation of the SafeSearch Filter. Adjusts the ads that appear in Google Search.
Expiry: 2 Years
Type: HTTP
Save certain preferences, for example the number of search results per page or activation of the SafeSearch Filter. Adjusts the ads that appear in Google Search.
Expiry: 2 Years
Type: HTTP
Save certain preferences, for example the number of search results per page or activation of the SafeSearch Filter. Adjusts the ads that appear in Google Search.
Expiry: 2 Years
Type: HTTP
Save certain preferences, for example the number of search results per page or activation of the SafeSearch Filter. Adjusts the ads that appear in Google Search.
Expiry: 2 Years
Type: HTTP
Save certain preferences, for example the number of search results per page or activation of the SafeSearch Filter. Adjusts the ads that appear in Google Search.
Expiry: 2 Years
Type: HTTP
Save certain preferences, for example the number of search results per page or activation of the SafeSearch Filter. Adjusts the ads that appear in Google Search.
Expiry: 2 Years
Type: HTTP
These cookies are used for the purpose of targeted advertising.
Expiry: 6 Hours
Type: HTTP
These cookies are used for the purpose of targeted advertising.
Expiry: 1 Month
Type: HTTP
These cookies are used to gather website statistics, and track conversion rates.
Expiry: 1 Month
Type: HTTP
Aggregate analysis of website visitors
Expiry: 6 Months
Type: HTTP
This cookie is set by Facebook to deliver advertisements when they are on Facebook or a digital platform powered by Facebook advertising after visiting this website.
Expiry: 4 Months
Type: HTTP
Contains a unique browser and user ID, used for targeted advertising.
Expiry: 2 Months
Type: HTTP
Used by LinkedIn to track the use of embedded services.
Expiry: 1 Year
Type: HTTP
Used by LinkedIn for tracking the use of embedded services.
Expiry: 1 Day
Type: HTTP
Used by LinkedIn to track the use of embedded services.
Expiry: 6 Months
Type: HTTP
Use these cookies to assign a unique ID when users visit a website.
Expiry: 6 Months
Type: HTTP
These cookies are set by LinkedIn for advertising purposes, including: tracking visitors so that more relevant ads can be presented, allowing users to use the 'Apply with LinkedIn' or the 'Sign-in with LinkedIn' functions, collecting information about how visitors use the site, etc.
Expiry: 6 Months
Type: HTTP
Used to make a probabilistic match of a user's identity outside the Designated Countries
Expiry: 90 Days
Type: HTTP
Used to collect information for analytics purposes.
Expiry: 1 year
Type: HTTP
Used to store session ID for a users session to ensure that clicks from adverts on the Bing search engine are verified for reporting purposes and for personalisation
Expiry: 1 Day
Type: HTTP
Cookie declaration last updated on 24/03/2023 by Analytics Vidhya.
Cookies are small text files that can be used by websites to make a user's experience more efficient. The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies, we need your permission. This site uses different types of cookies. Some cookies are placed by third-party services that appear on our pages. Learn more about who we are, how you can contact us, and how we process personal data in our Privacy Policy.
Edit
Resend OTP
Resend OTP in 45s
Hi Tavish, Does these questions or puzzle not for entry level or exp below 1-2 year. Because people from more exp will not judge by puzzles. Thanks ! Dinesh K...
Dinesh, Puzzles are more relevant for people at entry level. In general lateral hiring is done using business/analytics case studies. Tavish
Hi Tavish, I sincerely want to thank Analytics Vidhya team for such useful articles related to Analytics. Keep posting. I have another approach for puzzle 2 that we can consider as alternative approach. Kindly have a look at it. Step 1: Fill the 5 liter of beaker with 4 liter of beaker . So 1 liter is still remaining in 5 Liter of beaker. Step 2: Fill again remaining 1 liter in 5 Liter of beaker using 4 Liter of beaker. So now you have 3 liter water is remained in 4 Liter of beaker. Pour it in bucket. Step 3: Fill the 4 Liter of Beaker and pour it in the bucket..SO YOU HAVE NOW 7 LITERS IN A BUCKET. Thanks,
You are right Deval. Thanks for sharing.
Deval Bhai tumne muzze thoda confuse kar diyaa. step 2 i did not understand. my solution is this... Step 1: Fill 4 liter beaker. empty in bucket. Step 2: Repeat Step 1, two more times Step 3: Using 5 liter beaker remove 5 liters from the bucket
The logic works. Thanks for sharing.
Apurv, your logic also works.Everyone has his/her own thinking.So logic also differs. I have tried to simplify step 2. Hope it helps you to understand. Step 2 : In step 1 , 5 liter beaker has 1 liter of space empty(after filling using 4 liter beaker). We are filling that space using 4 liter beaker in Step 2. After filling you have 3 liter water remaining in 4 Liter beaker. Pour it in a bucket. Thanks,
But it will take 1 more cycle to complete the same task..