Flipkart Grid Coding Questions and Answers

Flipkart Grid Coding Questions with Solutions

In this page, you will find out Flipkart Grid Coding Questions and Answers with other Tech Awareness / CS-IT Fundamentals based questions, asked in Online Assessments conducted by Flipkart as Hiring Challenge names as GRID. 

Apart from that you will get more Insights on Flipkart GRID Hiring Challenge, CTC Offered, Steps involved in this challenge, etc. 

flipkart-grid-coding-questions

About Flipkart GRID Hiring Challenge

Flipkart GRiD 7.0 is a national-level competition for engineering students, organized by Flipkart. It gives students a chance to solve real tech problems, show their coding and problem-solving skills, and get noticed by Flipkart’s hiring team. The competition has multiple rounds, including profile shortlisting, coding tests, a case study challenge, and a final round at Flipkart’s office in Bangalore.

Winners get cash prizes, certificates, and a chance for internships or full-time jobs (like SDE roles) at Flipkart. Students from B.Tech, M.Tech, and integrated programs who are graduating in 2026, 2027, 2028, or 2029 can apply.

Steps in Flipkart GRID Hiring Challenge

Flipkart GRID Hiring Challenge consists of the following steps :

1. Registration:

Students register individually with valid academic and personal details.

2. Screening Round

Flipkart shortlists candidates based on academic profile, projects, and achievements. No test is conducted in this round.

3. Coding Round

An online 90-minute coding test with 3 questions based on data structures and algorithms. Languages allowed: C, C++, Java, Python.

4. Case Study Round

Participants solve a real-world problem given by Flipkart, submit code and sometimes a report or video. Judged on technical strength and business understanding.

5. National Finale (On site)

Top students form teams and present a working prototype at Flipkart’s Bangalore office. Winners receive prizes, recognition, and possible job/internship offers. Travel and stay are provided by Flipkart.

We have mentioned further details of the Flipkart GRID Hiring Challenge in the following Tabular Form
Flipkart Related Information
Position :
  1. Tech Internships (Summer/Winter based on year)
  2. Software Development Engineer – 1 (Full-time)
Course :
  • B.Tech / B.E / B.S / M.Tech / M.S / Dual Degree (Engineering)
  • All specializations are eligible
  • Eligible Graduation Years: 2026, 2027, 2028, 2029 (up to 2030 for dual-degree)
Eligibility Criteria : No minimum CGPA or percentage requirement
Salary / Stipend :
  • Internship: ₹1,00,000 per month (approx.)
  • Full-time (SDE-1): ~₹32 LPA CTC
Hiring Process :
  • Based on performance till Case Study Round (Round 3)
  • Selected based on combined evaluation scores
  • Offers: Summer/Winter Internship or Full-time Role (depending on year of study)
Round 1: Screening Academic and non-academic profile evaluation. No test. Shortlisting based on consistency, achievements, and overall background.
Round 2: Coding Assessment 90-minute proctored test with 3 coding questions. Languages allowed: C, C++, Java, Python. Shortlisting based on test case score.
Round 3: Case Study-based Coding Real Flipkart business problem. Candidates must design a tool/system, submit the code. Evaluation based on solution quality and technical depth.
Round 4: National Finals Top 48 invited to Flipkart HQ, Bangalore. Final team round with prototype demo. Top 6 teams (24 students) win prizes and recognition.

Prime Course Trailer

Related Banners

Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription

Sample Flipkart Grid Coding Questions with Solutions

Problem Statement:

You are working at a package sorting facility for a major e-commerce company. Your task is to design an efficient algorithm that can sort packages based on their weights and ensure that they are loaded onto the delivery trucks in the correct order.

Input:

– You are given a list of packages, each represented by an integer weight. The weights are positive integers, and the list can have duplicates.
– Additionally, you are given the maximum weight capacity of each delivery truck. No truck can carry a package with a weight exceeding this capacity.

Output:

– Your algorithm should sort the packages in a way that they can be efficiently loaded onto the delivery trucks, respecting their weight capacities.

Constraints:

– The number of packages, N, will be an integer in the range 1 ≤ N ≤ 10^5.
– The weight of each package, W, will be an integer in the range 1 ≤ W ≤ 10^3.
– The maximum weight capacity of each truck, C, will be an integer in the range 1 ≤ C ≤ 10^4.

Example:

Input:
packages = {30, 10, 50, 20, 40}

truckCapacity = 60

Output:
{{10, 50}, {20, 40}, {30}}

Solution :

To efficiently sort the packages based on their weights and load them onto the delivery trucks, we can use the “Greedy Algorithm” approach. The idea is to always choose the heaviest package available that can fit within the remaining capacity of the current truck. If no package can fit, start a new truck.

Here’s the step-by-step process:

1. Sort the packages in non-increasing order of their weights.
2. Initialize an empty list of trucks, let’s call it `trucks`.
3. For each package `p` in the sorted list of packages:
– For each truck `t` in `trucks`:
– If the weight of `p` plus the total weight of packages already loaded in `t` is less than or equal to the truck capacity, add `p` to `t` and break the loop.
– If no truck can accommodate `p`, create a new truck `newTruck`, add `p` to `newTruck`, and append `newTruck` to the list of `trucks`.
4. Return the list of trucks after all packages have been processed.

Here’s the C++ code implementation:

#include <bits/stdc++.h>

using namespace std;

vector> sortPackages(vector& packages, int truckCapacity) {
    // Step 1: Sort the packages in non-increasing order of their weights.
    sort(packages.begin(), packages.end(), greater());

    // Step 2: Initialize an empty list of trucks.
    vector> trucks;

    // Step 3: Load packages into trucks based on the Greedy Algorithm approach.
    for (int p : packages) {
        bool loaded = false;
        for (vector& t : trucks) {
            if (t.size() < truckCapacity && t.back() + p <= truckCapacity) {
                t.push_back(p);
                loaded = true;
                break;
            }
        }
        if (!loaded) {
            vector newTruck = {p};
            trucks.push_back(newTruck);
        }
    }

    // Step 4: Return the list of trucks.
    return trucks;
}

int main() {
    vector packages = {30, 10, 50, 20, 40};
    int truckCapacity = 60;

    vector> sortedTrucks = sortPackages(packages, truckCapacity);

    // Output the sorted packages in each truck
    for (const vector& truck : sortedTrucks) {
        cout << "{";
        for (size_t i = 0; i < truck.size(); ++i) {
            cout << truck[i];
            if (i < truck.size() - 1) {
                cout << ", ";
            }
        }
        cout << "}" << endl;
    }

    return 0;
}

FAQs related to Flipkart Grid Hiring Challenge

Question 1: Who is eligible for Flipkart GRID?

  • Students who are currently pursuing B.Tech, B.E, M.Tech, M.S, or related engineering programs from colleges in India or the USA are eligible to participate in Flipkart GRiD.

  • Eligible graduation years include 2026, 2027, 2028, and 2029 (including dual-degree students).
    Note: Students graduating in 2025 are not eligible.

Question 2: What are the topics covered in Online Assessment ?

The Online Assessment (Coding Round) in Flipkart GRiD 7.0 typically includes 3 programming questions  to be solved in 90 minutes based on the following topics:

  • Data Structures: Arrays, Strings, Linked Lists, Stacks, Queues, Trees, Graphs
  • Algorithms: Sorting, Searching, Recursion, Backtracking, Greedy, Dynamic Programming
  • Problem Solving: Logic building, edge case handling, optimal solutions
  • Time & Space Optimization
Question 3: What is Round 3 - Case Study based Code ?

Round 3 – Case Study Based Code is a stage where shortlisted candidates receive a real world business problem statement from Flipkart, usually related to technology or e-commerce. Participants are required to develop a complete technical solution, such as a tool, system, or application, to address the problem.

The submission must include working code, and in some cases, a demo video or brief report may be required. Evaluation is based on how well the solution works, its technical depth, and how effectively it solves the business challenge.

Question 4: Is participants are allowed to choose the Problem Statements ?

No, participants are not allowed to choose the problem statements in Flipkart GRiD Round 3. The case study problem is assigned by Flipkart to each participant or team. All participants must work on the same or specific assigned problem and submit their technical solution based on the given guidelines.

Question 5: What is exactly the 2nd Round of Flipkart GRID Hiring Challenge ?

The 4th Round is the National Finals, where the top 48 candidates are invited to Flipkart’s Bangalore HQ. They form teams of 4, build a working prototype based on their previous solution, and present a live demo to Flipkart’s jury. The top 6 teams are awarded and considered for hiring.

Question 6: What is the salary offered after Flipkart GRID?
  1. For Technical Intern = ₹ 1 Lakh/month.
  2. For SDE-1 role = ₹ 32 LPA
Question 7: What are the rewards given by the company ?

Flipkart GRiD offers the following rewards:

  1. 1st Prize (2 teams): ₹1,50,000 each
  2. 2nd Prize (2 teams): ₹1,00,000 each
  3. 3rd Prize (2 teams): ₹50,000 each
  4. Top 50 participants: Featured by Flipkart
  5. All finalists: Letter of Recommendation (LOR)
  6. Merit certificates: After each round
  7. Hiring opportunities: Internships or full-time roles based on performance
Question 8: How many people are allowed for building a team for Flipkart Grid ?

Participants can form a team of 1 to 3 members from the same engineering college. Each person is allowed to be part of only one team throughout the competition.

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

Checkout list of all the video courses in PrepInsta Prime Subscription

Checkout list of all the video courses in PrepInsta Prime Subscription