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

Backend Developer

CRED
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
Started coding 2 years back when I was in 2nd year. I got to know that to get an job we have to do some coding type stuff. I started with basic coding and started with hackerank and gradually increases the difficulty of the problem. After that I moved to leetcode and firstly I solved problems on the basis of tags first easy then medium then hard. Do all the standard problem of each topic.
Application story
So basically, it was an on-campus opportunity. The company has visited our college to hire final-year students for the full-time role. There were three rounds of interviews and one online test round
Why selected/rejected for the role?
Not able to clear the design coding round as I haven't prepared well for such types of questions where classes related things are required.
Preparation
Duration: 6 months
Topics: DP, Graph, Greedy, Tree, Arrray, Hashmaps, binary search
Tip
Tip

Tip 1 : Be consistent in coding and contests
Tip 2 : Should have knowledge of system design not whole but basic
Tip 3 : Should have knowledge of design questions

Application process
Where: Campus
Eligibility: 8 cgpa and above
Resume Tip
Resume tip

Tip 1 : Have at least 1 project on resume
Tip 2 : Resume should be one page only strictly
Tip 3 : Put some achievements like you got a good rank in a coding contest help you to stand out

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date2 Aug 2022
Coding problem3

It was in the afternoon time at 2 pm

1. String Maker

Hard
50m average time
50% success
0/120
Asked in companies
GrofersCRED

According to Ancient Ninjas, string making is a form of art. There are various methods of string making, one of them uses previously generated strings to make the new one. Suppose you have two strings A and B, to generate a new string C, you can pick a subsequence of characters from A and a subsequence of characters from B and then merge these two subsequences to form the new string.

Though while merging the two subsequences you cannot change the relative order of individual subsequences. What this means is - suppose there are two characters ‘Ai’ and ‘Aj’ in the subsequence chosen from ‘A’, where i < j, then after merging, if i acquires position k and j acquires p then k < p should be true and the same apply for subsequence from B.

Given strings ‘A’, ‘B’, ‘C’ can you count the number of ways to form string ‘C’ from the two strings ‘A’ and ‘B’ by the method described above? Two ways are different if any of the chosen subsequences is different.

As the answer could be large so return it after modulo 10 ^ 9 + 7.

For Example :
let A = a, B = ac, C = ac.

Now In this example, we can take whole string B to form C or take substring {a} and substring {c} from A and B, respectively to make C. Hence the answer is 2.
Try solving now

2. Count All Subarrays With Given Sum

Moderate
15m average time
85% success
0/80
Asked in companies
SAP LabsIBMHSBC

You are given an integer array 'arr' of size 'N' and an integer 'K'.

Your task is to find the total number of subarrays of the given array whose sum of elements is equal to k.

A subarray is defined as a contiguous block of elements in the array.

Example:
Input: ‘N’ = 4, ‘arr’ = [3, 1, 2, 4], 'K' = 6

Output: 2

Explanation: The subarrays that sum up to '6' are: [3, 1, 2], and [2, 4].
Try solving now

3. Task Scheduler

Moderate
35m average time
65% success
0/80
Asked in companies
UberFacebookOracle

A ninja needs to complete ‘n’ tasks. Each task is represented by an uppercase letter of the English alphabet. Different letters are assigned to different tasks. A ninja can complete tasks in any order. He takes one unit of time to complete one task. For each unit of time, he could complete either one task or just be idle.

Ninja easily gets bored by doing the same task again. So he decided to keep at least ‘t’ units of time between any two same tasks.

You are given a string ‘tasks’ consisting of ‘n’ uppercase letters of the English alphabet, representing the tasks ninja need to complete, and an integer ‘t’ representing the least units of time between any two same tasks. Find out the minimum total units of time ninja will take to complete all ‘n’ tasks.

Problem approach

Create a frequency array freq to count the number of occurrences of each task.
Sort the freq array in ascending order.
Calculate the maximum frequency maxFreq of any task.
Calculate the number of idle slots idleSlots required by the most frequent task, which is equal to (maxFreq - 1) * n.
Iterate over the remaining tasks in descending order of frequency and subtract the minimum of maxFreq and the frequency of the task from idleSlots.
If idleSlots is still positive, add it to the length of the input task list tasks. Otherwise, return tasks.size().

Try solving now
02
Round
Easy
Online Coding Interview
Duration60 minutes
Interview date4 Aug 2022
Coding problem1

It was at the morning time at 10 am.

1. System Design Question

Design LinkedIn

Problem approach

I was able to do some of the following features but didn't able to solve whole as we have to use classes to solve this question efficienty.

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
Backend Developer
3 rounds | 3 problems
Interviewed by CRED
3889 views
0 comments
0 upvotes
company logo
Product Analyst
2 rounds | 5 problems
Interviewed by CRED
4166 views
2 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by CRED
3590 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3452 views
0 comments
0 upvotes