AlphaGrep Securities interview experience Real time questions & tips from candidates to crack your interview

Python Developer

AlphaGrep Securities
upvote
share-icon
2 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Journey
My primary programming language has always been C++, and that’s what I’ve used extensively for DSA. However, since AlphaGrep Securities allows coding only in Python, I had to quickly adapt. I started by revisiting Python fundamentals through online resources to strengthen my syntax understanding. Then, I began solving DSA problems in Python initially translating logic from C++ to Python to draw parallels between both languages.
Application story
It was an on-campus opportunity at Chandigarh University. I applied for AlphaGrep Securities through the forms provided by the university. The application involved submitting my updated resume and academic details. After the initial shortlisting based on eligibility criteria, I was invited to participate in the online coding and interview rounds conducted by the company.
Why selected/rejected for the role?
I believe they wanted a Python developer with a deeper mastery of the language than I had at that time, including advanced-level knowledge and practical tips.
Preparation
Duration: 1 month
Topics: Tuples, Dictionaries, Sets, Generators, Decorators
Tip
Tip

Tip 1: Focus on building a strong foundation by clearing your fundamentals first.
Tip 2: Once you’re confident with the basics, gradually move on to advanced and complex topics.

Application process
Where: Campus
Eligibility: 7.5 CGPA, (Salary package: 17 LPA)
Resume Tip
Resume tip

Tip 1: Use numeric values or measurable results to highlight the impact and outcomes of your projects.
Tip 2: Include notable achievements or recognitions to strengthen your profile.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration120 minutes
Interview date8 Jul 2025
Coding problem3

1. Unique Substrings of Length k

Moderate
0/80

You are given a string password and an integer k. Your task is to find the number of distinct (unique) substrings of length exactly k that exist within the password.


A substring is a contiguous sequence of characters. For example, in the string "ababa" with k=3, the substrings of length 3 are "aba", "bab", and "aba". The set of unique substrings is {"aba", "bab"}, so the total count is 2.


Problem approach

The problem is solved by checking how many unique substrings of length k exist within the given password. First, the value of k is validated to ensure it is not zero or greater than the password length. Then, all possible substrings of length k are generated from the password. These substrings are stored in a set to automatically remove duplicates.

Try solving now

2. Diverse Committee Selection

Easy
0/40

A company is forming a 3-member committee for a social event. The pool of available employees consists of a number of men and women. To ensure diversity, the committee must have at least one man and at least one woman.


Given the number of men (M) and women (W) available, your task is to calculate the total number of unique ways a valid 3-member committee can be formed.


A committee is considered invalid if it consists of all men or all women.


Problem approach

The solution involves calculating how many 3-member groups can be formed that include at least one man and one woman. The total number of ways to choose any 3 members from all available men and women is first calculated. Then, the number of all-men and all-women groups is subtracted from the total, as they do not meet the diversity condition. The remaining count represents the valid diverse groups. If either the number of men or women is zero, no diverse group can be formed, resulting in an output of zero.

Try solving now

3. DBMS

Retrieve Active Client MAC Addresses with Traffic Records.

02
Round
Easy
Video Call
Duration60 minutes
Interview date15 Jul 2025
Coding problem4

This round was completely based on python concepts.

1. Python Concepts

Explain:

2. Python Data Structures

Write a code for converting a list into tuple. (Learn)

Problem approach

To solve the problem of converting between lists and tuples, the approach is straightforward. To convert a list into a tuple, the built-in `tuple()` function is used, which takes the list as input and returns a tuple containing the same elements in the same order. Conversely, to convert a tuple into a list, the built-in `list()` function is used, which takes the tuple as input and returns a list with the same elements. This method ensures that the data structure is changed while preserving all the original elements.

3. Python Decorators

Explain and implement decorators. (Learn)

Problem approach

The solution uses a decorator function to extend the behaviour of another function without modifying its original code. A decorator is defined as a function that takes a function as input and returns a new function, often called a wrapper, which can execute additional code before and after calling the original function. By applying the decorator using the `@` syntax, the original function is replaced by the enhanced version, allowing extra functionality, such as logging or validation, to be added seamlessly while preserving the original function’s behaviour.

4. OOPS

How is Python an object-oriented language? (Learn)

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4656 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
960 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6450 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 views
0 comments
0 upvotes