15 questions · from 5 interviews
Cashfree interview questions
Every question candidates reported from their Cashfree interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.
Cashfree coding and DSA questions
- 01
Find K Closest Elements
Given a sorted array arr, two integers k and x, return the k closest integers to x in the array. The result should also be sorted in ascending order. An integer a is closer to x than an integer b if: |a - x| < |b - x|, or |a - x| == |b - x| and a < b Example…
Medium · From Cashfree interview Experience
- 02
Flatten a Deeply Nested Array
Given a nested array like: js const nestedArray = [1, [2, 3], [4, [5]]]; Write a function to flatten it without using inbuilt functions like .flat(). Note: Interviewer asked to avoid inbuilt .flat() and recursion was allowed.
Medium · From Cashfree interview Experience
- 03
The Employee That Worked on the Longest Task
LeetCode problem 2432: The Employee That Worked on the Longest Task.
Easy · From Cashfree Frontend Intern Online assessment
- 04
Distinct One Counts After One Flip
Problem: Distinct One Counts After One Flip You are given a binary array arr of length n , consisting only of 0s and 1s. You are allowed to choose exactly one subarray (possibly empty) and flip all of its elements — that is, convert all 0s in the subarray to…
- 05
Complementary Palindrome Pairs
Given a vector of strings, find the number of complementary pairs. A complementary pair (i,j) (where i!=j) is defined such that if you concatenate the string at the i-th position and the string at the j-th position, any permutation of the resulting…
- 06
All Palindromic Substrings
Given a string, find all possible palindromic substrings within it.
Medium · From CashFree SDET Role
- 07
Search in Rotated Sorted Array
Given a sorted array that has been rotated at some unknown pivot, search for a target element's index.
Medium · From CashFree SDET Role
- 08
Cheapest Flights Within K Stops
Given a list of flights and their costs, find the cheapest price to travel from a source city to a destination city with at most K stops.
Medium · From CashFree SDET Role
- 09
Edit Distance
Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2. The allowed operations are insert a character, delete a character, or replace a character.
Hard · From CashFree SDET Role
Cashfree system design questions
- 01
Custom Auction System
Problem: Custom Auction System You are building a custom auction system with unique bidding rules : An auction starts with an initial price . Bidders can place bids via updatePrice , but only if their bid is higher than the current bid . To win the item, a…
Cashfree other questions
- 01
Purpose of HTTP
Explain the fundamental reasons and role of HTTP in web communication.
From CashFree SDET Role
- 02
HTTP vs. WebSocket
Describe the key differences between HTTP and WebSocket protocols, including their connection models, use cases, and advantages/disadvantages.
From CashFree SDET Role
- 03
Purpose of Database Schemas
Explain the reasons and benefits behind creating and using different schemas in a database system (e.g., for organization, security, access control).
From CashFree SDET Role
- 04
SQL vs. NoSQL Databases
Discuss the fundamental differences between SQL (relational) and NoSQL (non-relational) databases, covering aspects like data models, scalability, flexibility, and typical use cases.
From CashFree SDET Role
- 05
Paging Algorithms
Discuss various paging algorithms used in operating systems for memory management, explaining their principles and common examples (e.g., FIFO, LRU, Optimal).
From CashFree SDET Role
Cashfree interview questions FAQ
What questions are asked in Cashfree interviews?
Candidates reported 15 distinct questions across 5 Cashfree interviews. 9 coding and DSA questions, 1 system design questions, 5 other questions.
How difficult are Cashfree interview questions?
Of the questions candidates rated, 14% were easy, 71% medium and 14% hard.