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

SDE - 1

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

Interview preparation journey

expand-icon
Journey
My life has had many ups and downs, but I somewhat managed to get admission to the college where I took computer science as a subject. Then my coding journey started from here.
Application story
I applied through a friend's referral, a person working at this company.
Why selected/rejected for the role?
I was rejected because I could not answer all the questions correctly and precisely.
Preparation
Duration: 6 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1: Understand the Fundamentals: Ensure you grasp fundamental programming concepts such as data structures, algorithms, and object-oriented programming. Review key topics like arrays, linked lists, stacks, queues, trees, sorting, searching, and graph algorithms.

Tip 2: Practice, Practice, Practice: Regular practice is essential for coding rounds. Solve various coding problems from different sources, including coding websites, books, and online coding platforms. Start with easier problems and gradually move to more complex ones to build problem-solving skills.

Application process
Where: Referral
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1: Have some projects on your resume.

Tip 2: Do not put false information on your resume.

Interview rounds

01
Round
Medium
Face to Face
Duration60 minutes
Interview date8 Oct 2022
Coding problem2

The technical interview round consisted of questions focused on Data Structures and Algorithms (DSA) and Database Management Systems (DBMS). The purpose was to assess the candidate's understanding of fundamental concepts and problem-solving abilities in these domains.

1. Subsequences of String

Moderate
15m average time
85% success
0/80
Asked in companies
Chegg Inc.Expedia GroupQuikr

You are given a string 'STR' containing lowercase English letters from a to z inclusive. Your task is to find all non-empty possible subsequences of 'STR'.

A Subsequence of a string is the one which is generated by deleting 0 or more letters from the string and keeping the rest of the letters in the same order.
Try solving now

2. String Sort

Easy
0/40
Asked in companies
Chegg Inc.HCL Technologies

You are given a string ‘S’ consisting of lowercase English alphabets from ‘a’ to ‘z’. You have to print the string in sorted order.

Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date8 Oct 2022
Coding problem2

1. Minimum Sum Of Two Numbers Formed From Digits Of An Array

Easy
15m average time
85% success
0/40
Asked in company
Chegg Inc.

Given an array of integers “ARR” in which value of each element is between 0 and 9(both inclusive), You are supposed to construct two numbers by concatenating the elements of ARR and find the minimum possible sum of two numbers formed using the elements of the array.

Note: Each element of the given array must be a part of exactly one number.

Try solving now

2. Intersection Of Two Sorted Arrays

Easy
10m average time
90% success
0/40
Asked in companies
IBMFacebookBig Basket

You are given two arrays 'A' and 'B' of size 'N' and 'M' respectively. Both these arrays are sorted in non-decreasing order. You have to find the intersection of these two arrays.

Intersection of two arrays is an array that consists of all the common elements occurring in both arrays.

Note :
1. The length of each array is greater than zero.
2. Both the arrays are sorted in non-decreasing order.
3. The output should be in the order of elements that occur in the original arrays.
4. If there is no intersection present then return an empty array.
Try solving now
03
Round
Easy
Video Call
Duration60 minutes
Interview date8 Oct 2022
Coding problem2

1. Diameter of Binary Tree

Easy
10m average time
90% success
0/40
Asked in companies
PhonePeAmazonPayU

You are given a Binary Tree.


Return the length of the diameter of the tree.


Note :
The diameter of a binary tree is the length of the longest path between any two end nodes in a tree.

The number of edges between two nodes represents the length of the path between them.
Example :
Input: Consider the given binary tree:

Example

Output: 6

Explanation:
Nodes in the diameter are highlighted. The length of the diameter, i.e., the path length, is 6.


Try solving now

2. Construct BST from Post-order

Moderate
30m average time
60% success
0/80
Asked in companies
IntuitChegg Inc.D.E.Shaw

You have been given an array ‘postOrder’ consisting of ‘N’ elements. The array represents the post order traversal of a Binary Search Tree(BST). You need to construct the BST from this post order traversal.

Note: A Binary Search Tree (BST) is a binary tree data structure that has the following properties -

• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.

For Example:

For the given post order traversal: 2 4 3 7 6 5
The BST will be: 

The Inorder Traversal of this BST is 2 3 4 5 6 7. 
Try solving now

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
3 rounds | 7 problems
Interviewed by Chegg Inc.
1139 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
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