All companies
Ola & Krutrim logo
Indian Unicorn
SDE-1, ML Engineer
Online assessment (2–4 coding problems) + Technical (DSA, System Design, ML) + Hiring Manager

Ola & Krutrim SDE-1 & ML Engineer — Hiring Structure, Syllabus & 8-Week Prep Plan

Ola and Krutrim offer opportunities at the intersection of mobility and AI. Ola's engineering team focuses on large-scale geospatial systems, ride-matching, and pricing engines. Krutrim, India's AI unicorn, focuses on foundational LLMs, AI cloud infrastructure, and Indic-language processing. This guide provides a detailed preparation path for both software and machine learning tracks.

SDE-1 focus: DSA, geospatial systems, and distributed services. ML Engineer focus: Python, SQL, ML fundamentals, LLM fine-tuning, and mobility-specific AI cases like ETA and demand forecasting.

Last updated:

Exam Pattern

SDE-1 focus: DSA, geospatial systems, and distributed services. ML Engineer focus: Python, SQL, ML fundamentals, LLM fine-tuning, and mobility-specific AI cases like ETA and demand forecasting.

SectionQuestionsTimeTypeDifficulty
SDE-1 · Online Assessment2–4 problems90–120 minDSA + Mobility LogicMedium–Hard
SDE-1 · DSA Interview1–2 problems45–60 minLive Coding & OptimizationMedium–Hard
SDE-1 · System Design1–2 cases45–60 minGeospatial & Distributed ServicesHard
ML · Coding/SQL AssessmentMixed90 minPython, DSA, SQLMedium
ML · Fundamentals RoundVaries45–60 minStats, Modeling, EvaluationMedium–Hard
ML · Applied/Systems Round1–2 cases60 minModel Training & Serving at ScaleHard

Section-Wise Syllabus

Everything that appears in the assessment, grouped by section.

1. SDE-1 — Core DSA & Backend

Advanced Arrays & Strings

  • • Prefix sums
  • • Difference arrays
  • • Two pointers
  • • Sliding window
  • • Hashing
  • • Sorting-based optimization
  • • Subarrays & subsequences
  • • Coordinate compression
  • • Minimum window
  • • String matching (KMP/Rabin-Karp)

Graphs & Mobility

  • • BFS & DFS
  • • Connected components
  • • Cycle detection
  • • Topological sort
  • • Dijkstra (Route optimization)
  • • Minimum spanning tree
  • • DSU
  • • Multi-source BFS
  • • A* search basics
  • • Geohashing basics

Dynamic Programming

  • • House robber
  • • Coin change
  • • 0/1 Knapsack
  • • Subset sum
  • • Grid DP
  • • LIS
  • • LCS
  • • Edit distance
  • • Stock buy-sell
  • • Interval DP
  • • Tree DP

Backend Systems

  • • REST & gRPC
  • • Microservices
  • • Load balancing
  • • Caching strategies
  • • DB Indexing & Sharding
  • • Message queues (Kafka/RabbitMQ)
  • • CAP Theorem
  • • Idempotency
  • • Rate limiting
  • • Observability (Logs, Metrics, Traces)

2. ML Engineer — Modeling & Systems

Mathematics

  • • Bayes’ theorem
  • • Random variables
  • • Expectation & Variance
  • • Common distributions
  • • Sampling techniques
  • • Hypothesis testing
  • • p-values
  • • A/B testing
  • • Central limit theorem
  • • Correlation vs Causation

Machine Learning Core

  • • Linear & Logistic Regression
  • • Decision Trees & Random Forests
  • • Gradient Boosting (XGBoost/LightGBM)
  • • Clustering (K-Means/DBSCAN)
  • • PCA
  • • Feature Engineering
  • • Regularization (L1/L2)
  • • Cross-validation
  • • Model Calibration

Deep Learning & LLMs

  • • Backpropagation
  • • Activation functions
  • • Optimizers (Adam/SGD)
  • • CNNs & RNNs
  • • Transformers
  • • Self-Attention Mechanism
  • • Tokenization (BPE/SentencePiece)
  • • LLM Fine-tuning (PEFT/LoRA)
  • • RAG Systems
  • • Quantization & Distillation

ML Systems

  • • Data/Feature pipelines
  • • Model Serving (Latency vs Throughput)
  • • Online vs Batch Inference
  • • Monitoring & Drift detection
  • • GPU utilization
  • • Vector databases
  • • A/B testing for models

3. Mobility & AI Specialty

Ola Specialty

  • • Haversine distance
  • • Nearest-neighbor search
  • • Quadtrees & R-trees
  • • Spatial indexing
  • • Bipartite matching
  • • Demand-supply balancing
  • • Surge-pricing logic
  • • ETA prediction

Krutrim Specialty

  • • Indic-language challenges
  • • Multilingual tokenization
  • • Causal language modeling
  • • Safety & Red teaming
  • • Large-scale inference
  • • Indic-language evaluation
  • • Low-resource NLP

Most Asked Topics

Highest-frequency areas across recent test papers.

Geospatial Indexing

Implementing search for nearest drivers using Geohashes or Quadtrees.

Ride-Booking State Machine

Handling transitions between requested, assigned, started, and completed states reliably.

ETA Prediction Models

Using historical traffic, distance, and real-time conditions in a regression or deep learning framework.

Transformer Complexity

Understanding O(n²d) attention complexity and its impact on long-context inference.

Idempotent Payment Processing

Ensuring ride payments are processed exactly once despite retries or network failures.

Demand Forecasting

Time-series forecasting to position drivers in high-demand areas before peak hours.

Free Resources

Curated practice links per section.

50+ DSA Practice Problems

Solve in order — arrays and strings first, then sorting and recursion.

Arrays & Strings

  1. Longest substring without repetition
  2. Maximum subarray sum
  3. Smallest missing positive integer
  4. Product of array except self
  5. Minimum swaps to sort
  6. Merge intervals
  7. Subarray sum equals K
  8. Longest consecutive sequence

Lists, Stacks & Queues

  1. Reverse linked list
  2. Reverse in groups of k
  3. Detect cycle and entry point
  4. Clone list with random pointers
  5. Min stack
  6. Next greater element
  7. Largest rectangle in histogram
  8. Sliding window maximum

Trees & Graphs

  1. Lowest common ancestor
  2. Validate BST
  3. Serialize & deserialize binary tree
  4. Number of islands
  5. Shortest path in weighted graph (Dijkstra)
  6. Word ladder
  7. Course schedule (Topological sort)
  8. Bipartite graph check

DP & Matrix

  1. Edit distance
  2. Coin change
  3. Longest increasing subsequence
  4. House robber
  5. Stock buy-sell with cooldown
  6. Search in a 2D matrix
  7. Set matrix zeroes
  8. Rotate image

Previous Year Questions & Patterns

Repeat coding questions with the expected approach.

SDE-1 (Mobility Logic)

  • Design a system to find the top 5 nearest drivers to a customer's location.
  • How would you handle race conditions when two customers try to book the last available cab?
  • Implement a function to compute the Haversine distance between two sets of coordinates.
  • Design a trip-state management service that handles network drops and app kills.
  • How would you optimize route calculation for 100 delivery points (Traveling Salesman variation)?

ML Engineer (Modeling & Systems)

  • How would you handle delayed labels in an ETA prediction model?
  • Explain the tradeoff between precision and recall in a fraud detection system for ride cancellations.
  • How would you detect data drift in a production demand-forecasting model?
  • Describe how you would build a RAG system for Krutrim's customer support bot.
  • What are the challenges of tokenizing Indic languages like Hindi or Tamil compared to English?
  • How would you reduce the latency of an LLM inference service?

20+ SQL Query Bank

Write these out by hand — joins and subqueries are asked in both the test and the interview.

Ride Analytics

High-frequency riders

SELECT user_id, COUNT(ride_id) as ride_count
FROM rides
WHERE ride_time > NOW() - INTERVAL '30 days'
GROUP BY user_id
HAVING COUNT(ride_id) > 10;

Daily revenue growth

SELECT date, 
       revenue, 
       LAG(revenue) OVER (ORDER BY date) as prev_revenue
FROM daily_stats;

Driver Performance

Top drivers by rating in each city

SELECT city, driver_id, rating
FROM (
  SELECT city, driver_id, rating, 
         RANK() OVER (PARTITION BY city ORDER BY rating DESC) as rnk
  FROM drivers
) t
WHERE rnk <= 5;

DBMS & Core Interview Q&A

Short answers you should be able to say out loud.

What is a Geospatial Index (e.g., GIST in Postgres)?

A specialized index used to optimize queries involving spatial data like points, polygons, and distances.

Explain Eventual Consistency in a distributed ride-booking system.

It ensures that if no new updates are made, eventually all accesses will return the last updated value, often used for non-critical data like driver profile updates.

Why use NoSQL (like Cassandra) for location tracking?

To handle the high write volume of frequent GPS updates from thousands of drivers simultaneously.

OOPs Concepts + 10 Code Snippets

Theory plus the exact snippets asked in the technical round.

Strategy Pattern

Used in pricing engines to switch between 'Standard', 'Surge', and 'Discount' pricing algorithms dynamically.

Observer Pattern

Used to notify riders, drivers, and internal systems when a ride state changes (e.g., Driver Reached).

Singleton Pattern

Often used for managing connections to a global configuration or database pool.

Simple Trip State Machine

java

enum TripStatus { REQUESTED, ASSIGNED, ARRIVED, STARTED, COMPLETED, CANCELLED }

class Trip {
    private TripStatus status = TripStatus.REQUESTED;
    
    public synchronized void updateStatus(TripStatus next) {
        if (isValidTransition(status, next)) {
            this.status = next;
            notifyParticipants();
        }
    }
    
    private boolean isValidTransition(TripStatus from, TripStatus to) {
        // Logic to prevent illegal moves like STARTED -> REQUESTED
        return true; 
    }
}

Haversine Distance (approximate)

cpp

double haversine(double lat1, double lon1, double lat2, double lon2) {
    double dLat = (lat2 - lat1) * M_PI / 180.0;
    double dLon = (lon2 - lon1) * M_PI / 180.0;
    lat1 = lat1 * M_PI / 180.0;
    lat2 = lat2 * M_PI / 180.0;
    double a = pow(sin(dLat/2), 2) + pow(sin(dLon/2), 2) * cos(lat1) * cos(lat2);
    double c = 2 * asin(sqrt(a));
    return 6371 * c; // Earth radius in km
}

Operating System Basics

Scheduling, deadlock and memory management essentials.

Concurrency for Mobility

  • • Handling thousands of concurrent GPS pings
  • • Optimistic vs Pessimistic locking for cab assignment
  • • Thread safety in shared driver-pools
  • • Distributed locks using Redis or Zookeeper

Memory & Performance

  • • Garbage collection tuning for low-latency services
  • • Memory-mapped files for fast geospatial lookups
  • • CPU-bound vs I/O-bound microservices

4-Week Preparation Roadmap

From zero to test-ready in 28 days.

Week 1

DSA Basics & Statistics

  • Arrays, Strings, Hashing
  • Probability & Distributions basics

Goal: Solidify the fundamental problem-solving tools.

Week 2

Advanced DSA & ML Core

  • Linked Lists, Stacks, Queues
  • Linear/Logistic Regression & Decision Trees

Goal: Understand core structures and basic modeling.

Week 3

Graphs & Deep Learning

  • BFS, DFS, Dijkstra
  • Neural Networks & Backpropagation

Goal: Master graph algorithms and DL foundations.

Week 4

System Design & ML Systems

  • Load Balancers, Caching
  • Model Serving & Pipelines

Goal: Learn how to build systems that scale.

Week 5

DP & NLP/LLMs

  • Dynamic Programming
  • Transformers & Tokenization

Goal: Solve complex optimization problems and AI architectures.

Week 6

Mobility & Applied AI Cases

  • Geospatial Indexing
  • ETA & Demand Forecasting cases

Goal: Deep dive into Ola/Krutrim specific business logic.

Week 7

SQL, LLD & AI Infrastructure

  • Advanced SQL & Window Functions
  • GPU scheduling & Vector DBs

Goal: Practice data manipulation and specialized infra.

Week 8

Full Mocks & Review

  • 2 DSA mocks, 1 Design mock
  • Behavioral prep (STAR method)

Goal: Final polish and confidence building.

Exam Day Strategy

Score targets and time allocation.

Section targets

  • Online Assessment: Solve 2/3 problems fully; optimize later. Use helper functions for coordinates.
  • DSA Interview: Communicate thought process clearly. Ask about scale and edge cases (e.g., zero distance).
  • Design/ML Round: Start with high-level components. Discuss trade-offs (e.g., Latency vs Accuracy).

Coding time split (50 min)

  • 10 min: Clarification & Approach
  • 30 min: Implementation
  • 10 min: Testing & Optimization

Interview Process

What follows the online test.

SDE-1 Track

  • • Recruiter Screen
  • • Coding Assessment
  • • 2x Technical (DSA + Design)
  • • Hiring Manager (Culture/Product)

ML Engineer Track

  • • Resume Review
  • • Coding/Math Assessment
  • • ML Fundamentals Round
  • • Applied ML/Systems Case Round
  • • Leadership Conversation

Mock Test Plan

Four simulations to run before the real test.

Ola SDE-1 Mock

  • • 3 Coding problems (1 Easy, 2 Medium)
  • • 1 System Design case (Ride Matching)

Krutrim ML Mock

  • • ML MCQ set (Stats/DL)
  • • 1 LLM Case study (Indic RAG)

Final Checklist

Tick all of these before test day.

Mastered Dijkstra and A* for routing?
Understood Geohashing and Spatial Indexing?
Know the architecture of Transformers and Attention?
Can explain Haversine formula and its use case?
Prepared 'Ownership' and 'Ambiguity' stories for HM round?

Recent Interview Experiences

First-hand write-ups from students who actually sat the Ola & Krutrim process.

Be the first to share a Ola & Krutrim interview experience.

Frequently Asked Questions

Is Krutrim's process different from Ola's?

Yes, Krutrim focuses more on AI infrastructure and LLM research, while Ola focuses on mobility services and geospatial backend.

How much weight is given to projects?

Highly significant. Experience with high-scale distributed systems or state-of-the-art ML models (especially Indic-language ones) is a major plus.

Want the full structured prep for Ola & Krutrim?

The Premium Vault covers Aptitude, Core CS, DSA, SQL and HR rounds with module-wise courses and drill sheets.

Next steps chosen from the Ola & Krutrim pattern and other Indian Unicorn recruiters.

Other Indian Unicorn companies

Core CS subjects for this pattern

Recommended practice path