Chegg Inc. interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Chegg Inc.
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
My journey started in the 2nd year of college when I saw my friends practicing coding questions, learning new programming languages, and developing individual projects. After observing them, I realized I should also start learning more and practicing coding questions. As I practiced coding questions on various platforms, I realized that I needed to think more critically to solve complex problems, which led to the development of a habit of solving them.
Application story
I started preparing for the companies in 2nd year of college, and when I heard that this company was coming to our college, I wanted to get selected.
Why selected/rejected for the role?
I was selected because i was able to answer all the questions which were asked in the exam.
Preparation
Duration: 7 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1: OOPS - You should be well-versed in basic OOPS principles.
Tip 2: You should be confident and possess profound knowledge about the projects you have worked on.
Tip 3: Basic DB concepts such as joins and normalization are important.

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1: Have some projects on your resume.
Tip 2: Do not put false things on your resume.

Interview rounds

01
Round
Medium
Video Call
Duration75 minutes
Interview date15 Oct 2022
Coding problem2

1. Count Numbers Containing Given Digit K Times

Moderate
30m average time
70% success
0/80
Asked in companies
Chegg Inc.DirectiOracle

Ninja is in college and he is learning about numbers and counting he got an assignment in that and that task is hard for Ninja so he wants help from you. He has been provided with two numbers ‘L’ and ‘R’ which represent the range, Both numbers are inclusive. He has been provided with two more numbers which are ‘D’ and ‘K’ and now he has to do find the following :

What is the count of numbers in the range [L, R] in which each number has digit ‘D’ exactly ‘K’ times?

Example:
Input: ‘L’ = 1, ‘R’ = 12, ‘D’ = 2, ‘K’ = 1 

Output: 2

As in the range, numbers are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, and 2, 12 are the numbers where the digit ‘2’ comes exactly once.
Problem approach

A student named Shyam is in college, and he is learning about numbers and counting. He received an assignment, and the task is hard for him, so he wants help from you. He has been given two numbers, ‘L’ and ‘R’, which represent the range, both numbers being inclusive. Additionally, he has been provided with two more numbers, ‘D’ and ‘K’. Now, he needs to find the following:

What is the count of numbers in the range [L, R] in which each number contains the digit ‘D’ exactly ‘K’ times?

Try solving now

2. Delete Kth Node From End

Moderate
15m average time
95% success
0/80
Asked in companies
WalmartWells FargoChegg Inc.

You have been given a singly Linked List of 'N' nodes with integer data and an integer 'K'.


Your task is to remove the 'K'th node from the end of the given Linked List and return the head of the modified linked list.


Example:
Input : 1 -> 2 -> 3 -> 4 -> 'NULL'  and  'K' = 2
Output: 1 -> 2 -> 4 -> 'NULL'
Explanation:
After removing the second node from the end, the linked list become 1 -> 2 -> 4 -> 'NULL'.

altImage


Problem approach

Your task is to remove the 'K'th node from the end of the given linked list and return the head of the modified linked list.

Try solving now
02
Round
Easy
Video Call
Duration75 minutes
Interview date15 Oct 2022
Coding problem2

1. Minimum Cost to Connect All Points

Moderate
30m average time
70% success
0/80
Asked in companies
MicrosoftOracleAmazon

You are given an array, ‘COORDINATES’ that represents the integer coordinates of some points on a 2D plane. Your task is to find the minimum cost to make all the points connected where the cost of connecting two points: (x1, y1) and (x2, y2) is equal to the manhattan distance between them, i.e., |x1 - x2| + |y1 - y2|.

Note:

1) An element of the ‘COORDINATES’ array is a pair of ‘X' and ‘Y’ coordinates of a point, i.e., COORDINATES[i] =  (Xi, Yi).

2) |DISTANCE| represents the absolute value of distance.

3) All points are considered to be connected if there is exactly one simple path between two points.

4) According to Wikipedia, a simple path is a path in a plane that does not have repeating points.
Problem approach

You are given an array, 'COORDINATES,' that represents the integer coordinates of some points on a 2D plane. Your task is to find the minimum cost to connect all the points, where the cost of connecting two points (x1, y1) and (x2, y2) is equal to the Manhattan distance between them, i.e., |x1 - x2| + |y1 - y2|.

Try solving now

2. Wildcard Pattern matching

Hard
50m average time
30% success
0/120
Asked in companies
FreshworksWalmartSamsung R&D Institute

Given a text and a wildcard pattern of size N and M respectively, implement a wildcard pattern matching algorithm that finds if the wildcard pattern is matched with the text. The matching should cover the entire text not partial text.

The wildcard pattern can include the characters ‘?’ and ‘*’

 ‘?’ – matches any single character 
 ‘*’ – Matches any sequence of characters(sequence can be of length 0 or more)
Problem approach

Given a text and a wildcard pattern of sizes N and M respectively, implement a wildcard pattern matching algorithm to determine if the wildcard pattern matches the entire text, not just a portion of it.

Try solving now
03
Round
Easy
HR Round
Duration30 minutes
Interview date15 Oct 2022
Coding problem1

1. Basic HR Questions

Explain how would you be an asset to this organization?
What are your outside interests?
Would you lie for the company?
Who has inspired you in your life and why?

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
SDE - 1
2 rounds | 5 problems
Interviewed by Chegg Inc.
1080 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by Chegg Inc.
995 views
1 comments
0 upvotes
SDE - 1
3 rounds | 7 problems
Interviewed by Chegg Inc.
878 views
0 comments
0 upvotes
SDE - 1
3 rounds | 6 problems
Interviewed by Chegg Inc.
767 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes