GeeksforGeeks Question · Apr 2019 · San Francisco

GS Lab interview Experience | Set 3

Question Details

First Round The first round was written round which was conducted by Hackerearth. 1st 5 questions were from aptitude, the 2nd section was from SQL q...

Full Details

First Round The first round was written round which was conducted by Hackerearth. 1st 5 questions were from aptitude, the 2nd section was from SQL queries, the 3rd section was from os and data structure and final section was 2 coding question. 1st coding question was very cool number CPP #include using namespace std ; int main () { long int q ; long int r , k ; cin >> r >> k ; string s ; long int count2 = 0 ; for ( long int hh = 5 ; hh <= r ; hh ++ ) { long int count = 0 ; long int l = 0 ; long int h = hh ; while ( h != 0 ) { s [ l ] = h % 2 ; h = h / 2 ; l ++ ; } s [ l ] = '\0' ; for ( long int i = 0 ; i < l -2 ; i ++ ) { if ( s [ i ] == 1 && s [ i + 1 ] == 0 && s [ i + 2 ] == 1 ) { count ++ ; } } if ( count >= k ) { count2 ++ ; } } cout << count2 << endl ;

return 0 ; } The 2nd coding question was a pattern. Second Round 1st technical round they asked me about my project which I had done using tableau and they said to me if I had to do it in SQL how can I visualize data, they said to me to do the Er model of the table, then some join query and told me to explain how does it happen and then gave an instance how can I get information about a family from the table and how can I optimize by adding the new table. Too many SQL queries.

NOTE: You have to Qualify each round to go to the

next round. Third Round They asked me about my next project which was based on home automation and real-life case scenario where it can be implemented. Then questions about the operating system, more SQL, and advanced SQL and finally java questions.

Note: - U must be strong in SQL and os and networking.

HR Round Be ready for some math questions and English questions through an android app where u have to cross a score. and be ready for technical questions in hr also and questions about family and some case scenarios. HR was very friendly. The final results were declared after a month where 3 people were selected out of 5 shortlisted people and I was one of them. Write data structure in your CV if are really strong in it. some questions they asked my friends were 1-merge point of a linked list 2-balanced parenthesis 3- diff between JVM and JRE 4- BST 5-searching a repeated value in an array without sorting. (can use any data structure) 6-ted ed puzzle questions For cracking this company u need to practice from cracking the coding interview book and start practicing from geeksforgeeks.

Free preview — 6 questions shown. Unlock all Gs Labs questions →

About This Question

This is a reported interview question from a gs labs interview for a android role during the recruiter round reported in 2019.

It covers the following topics: Linked List, Trees, Strings, Binary Tree, Sql, Sorting, Os, Arrays .

About Gs Labs Interview Reports

This question was reported by a candidate who interviewed at Gs Labs. LeakCode aggregates interview reports from 10+ sources, including 1Point3Acres, Glassdoor, LeetCode Discuss, Blind, Reddit, Indeed, and Nowcoder. Each report is translated where necessary, deduplicated against existing entries, and tagged by company, role, round type, and reporting date.

Use this question as one calibration data point, not a memorization target. Companies typically rotate their question pools every 2-4 months; the exact wording of a 2024 question may differ from what you encounter today. The underlying pattern, difficulty level, and follow-up depth at Gs Labs are the higher-signal extractions to take from this report.

For broader preparation context, the Gs Labs interview process typically includes a recruiter screen, one or two technical phone screens, and a 4-5 round on-site loop covering coding, system design (at L4+ levels), and behavioral. Reports tagged on LeakCode show the round-by-round distribution and typical difficulty calibration. To browse questions filtered by round type and seniority, use the company hub linked above.

How To Practice This Type of Question

Solve similar problems on LeetCode under timed conditions (25-35 minutes per medium difficulty). The goal is pattern recognition: recognize the underlying technique (sliding window, two-pointer, BFS, memoized recursion, etc.) within 60-90 seconds of reading. Strong candidates verbalize their hypothesis out loud before coding, then iterate based on feedback. Weak candidates dive into implementation immediately, lose time on the wrong approach, and run out of time for follow-ups.

Companies update their question pools every 2-4 months. The exact wording of any given question may have been retired by the time you interview. Focus your prep on the pattern, not the specific problem. The patterns that appear in Gs Labs reports consistently are the ones worth investing in; one-off niche problems are not.

During Your Gs Labs Round

Apply the standard interview round template: clarify requirements (2-3 minutes), state your approach out loud and confirm direction with the interviewer (3-5 minutes), code with narration (15-25 minutes), test with concrete examples including edge cases (5 minutes), discuss optimization or trade-offs if time permits (5 minutes). This template is universally accepted across FAANG and adjacent companies; deviating from it produces weaker interviewer feedback signal.

The single most predictive failure mode in Gs Labs reports tagged "no hire": not asking clarifying questions. Interviewers are explicitly trained to weight this. Strong candidates ask 3-5 clarifying questions even on problems that look obvious; weak candidates dive into code immediately. The clarifying-question check is often the first signal recorded in the interviewer's written notes.