Upload Button Icon Add office photos

ByteDance

Compare button icon Compare button icon Compare

Filter interviews by

ByteDance Software Engineer Interview Questions and Answers

Updated 27 May 2022

ByteDance Software Engineer Interview Experiences

1 interview found

Software Engineer Interview Questions & Answers

user image Calvin Tantio

posted on 27 May 2022

I applied via Approached by Company and was interviewed in Apr 2022. There were 2 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Microservices in-depth (advantages/disadvantages, service mesh, communication protocol, monitoring, resilience pattern)
  • Q2. Binary search (not joking)
  • Ans. 

    Binary search is an efficient algorithm for finding an item from a sorted list of items.

    • Requires a sorted array to function correctly.

    • Works by repeatedly dividing the search interval in half.

    • If the target value is less than the middle element, search the left half.

    • If the target value is greater, search the right half.

    • Example: In a sorted array [1, 2, 3, 4, 5], searching for 3 returns index 2.

  • Answered by AI
Round 2 - Technical 

(2 Questions)

  • Q1. Programming Language in-depth
  • Q2. Leetcode Hard Largest Miltiple of 3
  • Ans. 

    Given an array of digits, find the largest multiple of 3 that can be formed from the digits.

    • Sort the array in descending order.

    • If the sum of digits is divisible by 3, return the array as a string.

    • If the sum of digits modulo 3 is 1, remove the smallest digit that has a remainder of 1 when divided by 3, or the two smallest digits that have a remainder of 2 when divided by 3.

    • If the sum of digits modulo 3 is 2, remove the ...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Just normal LeetCode question (Medium, Hard)

Skills evaluated in this interview

Top trending discussions

View All
Interview Tips & Stories
5d (edited)
a team lead
Why are women still asked such personal questions in interview?
I recently went for an interview… and honestly, m still trying to process what just happened. Instead of being asked about my skills, experience, or how I could add value to the company… the questions took a totally unexpected turn. The interviewer started asking things like When are you getting married? Are you engaged? And m sure, if I had said I was married, the next question would’ve been How long have you been married? What does my personal life have to do with the job m applying for? This is where I felt the gender discrimination hit hard. These types of questions are so casually thrown at women during interviews but are they ever asked to men? No one asks male candidates if they’re planning a wedding or how old their kids are. So why is it okay to ask women? Can we please stop normalising this kind of behaviour in interviews? Our careers shouldn’t be judged by our relationship status. Period.
Got a question about ByteDance?
Ask anonymously on communities.

Interview questions from similar companies

I applied via Campus Placement and was interviewed in Dec 2016. There were 4 interview rounds.

Interview Questionnaire 

4 Questions

  • Q1. Given a 2d matrix with some D doors and W walls, we need fill distance matrix with minimum distance to the nearest door
  • Ans. 

    Given a 2D matrix with doors and walls, fill distance matrix with minimum distance to the nearest door.

    • Iterate through the matrix and find the doors

    • Use Breadth-First Search (BFS) to calculate the minimum distance from each cell to the nearest door

    • Update the distance matrix with the minimum distances

  • Answered by AI
  • Q2. Given a read-only array we want to find kth smallest element in unordered array with O(1) space
  • Ans. 

    Find kth smallest element in unordered array with O(1) space

    • Use the QuickSelect algorithm to partition the array and find the kth smallest element

    • Choose a pivot element and partition the array into two subarrays

    • Recursively partition the subarray that contains the kth smallest element

    • Repeat until the pivot element is the kth smallest element

    • Time complexity: O(n) average case, O(n^2) worst case

  • Answered by AI
  • Q3. Design question
  • Q4. Find friends of friend who already are not friends with you
  • Ans. 

    To find friends of friends who are not already friends with you, we can first find your friends and then their friends excluding yourself and your friends.

    • Get your list of friends

    • For each friend, get their list of friends

    • Exclude yourself and your friends from the final list of friends of friends

  • Answered by AI

Interview Preparation Tips

Round: Technical Interview
Experience: It started with an informal talk after he gave his introduction. We talked about the cyclone that was going to be there and what I did in my internship and my previous projects. Then we moved to questions. After solving both questions he asked if I had questions.
Tips: Just walk the interviewer through the solution you're proposing.

Round: Other Interview
Experience: He started with a design question with how to stream an image such that all clients see the same image at the same time. You need to take care of delays, network problems. He kept on adding new elements like compression, streaming, utc time related issues, client rendering delays and so on.

Round: Other Interview
Experience: This was bar-raiser round.

Skills: Design, Algorithms And Data Structures, Graph Theory
College Name: IIT Madras

Skills evaluated in this interview

Software Engineer Interview Questions Asked at Other Companies

asked in Qualcomm
Q1. Four people need to cross a bridge at night with only one torch t ... read more
asked in Capgemini
Q2. In a dark room, there is a box of 18 white and 5 black gloves. Yo ... read more
Q3. Tell me something about yourself. Define encapsulation. What is i ... read more
asked in Paytm
Q4. Puzzle : 100 people are standing in a circle .each one is allowed ... read more
asked in TCS
Q5. Find the Duplicate Number Problem Statement Given an integer arra ... read more

I appeared for an interview before Apr 2021.

Round 1 - Face to Face 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

It started with an informal talk after he gave his introduction. We talked about the cyclone that was going to be there and what I did in my internship and my previous projects. Then we moved to questions. After solving both questions he asked if I had questions.

  • Q1. 

    Kth Largest Element Problem Statement

    Given an array of distinct positive integers and a number 'K', your task is to find the K'th largest element in the array.

    Example:

    Input:
    Array: [2,1,5,6,3,8], K ...
  • Ans. 

    Find the Kth largest element in an array of distinct positive integers.

    • Sort the array in non-increasing order

    • Return the Kth element from the sorted array

    • Handle multiple test cases

  • Answered by AI
  • Q2. 

    Orange Rotting Problem Statement

    Consider a grid containing oranges. Each cell in this grid can hold one of three integer values:

    • Value 0: Represents an empty cell.
    • Value 1: Represents a fresh orang...
  • Ans. 

    The task is to determine the minimum time required for all fresh oranges to become rotten in a grid.

    • Create a queue to store the rotten oranges and their time of rotting.

    • Iterate through the grid to find the initial rotten oranges and add them to the queue.

    • Perform BFS by popping each rotten orange from the queue, rot adjacent fresh oranges, and add them to the queue with updated time.

    • Continue until the queue is empty, ke...

  • Answered by AI
Round 2 - Face to Face 

Round duration - 45 minutes
Round difficulty - Easy

This was a design round.

Interview Preparation Tips

Eligibility criteriaAbove 8 CGPAUber interview preparation:Topics to prepare for the interview - Design, Algorithms And Data Structures, Graph Theory, System Design, Aptitude, OOPSTime required to prepare for the interview - 4 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewRejected

Skills evaluated in this interview

I appeared for an interview before May 2021.

Round 1 - Coding Test 

(1 Question)

Round duration - 120 minutes
Round difficulty - Easy

It was a mix of mathematical aptitude, logical ability, and puzzles along with 2 programming questions of easy and medium levels. Time was enough and no sectional time was present. 1-2 MCQs on SQL was also present.

  • Q1. 

    Boolean Matrix Transformation Challenge

    Given a 2-dimensional boolean matrix mat of size N x M, your task is to modify the matrix such that if any element is 1, set its entire row and column to 1. Specifi...

  • Ans. 

    Modify a boolean matrix such that if any element is 1, set its entire row and column to 1.

    • Iterate through the matrix to find elements with value 1

    • Store the row and column indices of these elements

    • Update the entire row and column for each element found to be 1

  • Answered by AI
Round 2 - Video Call 

Round duration - 60 minutes
Round difficulty - Easy

It was an online video interview round on HackerEarth with a simultaneous code option. It was mostly justifying your resume in the first 15 minutes. After that OOPS was majorly asked. Basics of programming including questions on STL were asked. A class that required inheritance was asked by the interviewer to write. I was helped by the interviewer if I got stuck somewhere, Some questions on the implementation of hashmaps and priority queues were also asked. A puzzle was asked which luckily struct to me at that moment.

Interview Preparation Tips

Professional and academic backgroundI applied for the job as Software Engineer in HyderabadEligibility criteriaAbove 7 CGPAUber interview preparation:Topics to prepare for the interview - Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming, Aptitude , Programming Language.Time required to prepare for the interview - 2 monthsInterview preparation tips for other job seekers

Tip 1 : Clear basics
Tip 2 : Prepare well
Tip 3 : Do at-least 2 projects

Application resume tips for other job seekers

Tip 1 : Write only those things in resume in which you are 100% confident
Tip 2 : Write maximum projects you have and be ready to explain them thoroughly

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before May 2021.

Round 1 - Face to Face 

(1 Question)

Round duration - 60 Minutes
Round difficulty - Easy

  • Q1. 

    Find the k-th Node from the End of a Linked List

    Given the head node of a singly linked list and an integer 'k', this problem requires you to determine the value at the k-th node from the end of the linke...

  • Ans. 

    To find the k-th node from the end of a linked list, iterate through the list to determine the size, then traverse again to reach the k-th node from the end.

    • Iterate through the linked list to determine its size.

    • Calculate the position of the k-th node from the end based on the size of the list.

    • Traverse the list again to reach the k-th node from the end.

    • Return a pointer to the k-th node from the end.

  • Answered by AI
Round 2 - Video Call 

(1 Question)

Round duration - 60 Minutes
Round difficulty - Easy

High level System Design

  • Q1. Can you design a system like Uber, explaining the various components and architecture involved?
  • Ans. 

    Designing a system like Uber involves components like user app, driver app, server, database, and algorithms for matching and routing.

    • User app for booking rides and tracking

    • Driver app for accepting rides and navigation

    • Server for handling requests and communication between apps

    • Database for storing user, driver, and ride information

    • Algorithms for matching riders with drivers and routing

  • Answered by AI
Round 3 - HR 

Round duration - 45 minutes
Round difficulty - Easy

Basic HR questions

Interview Preparation Tips

Professional and academic backgroundI applied for the job as Software Engineer in HyderabadEligibility criteriaAbove 7 CgpaUber interview preparation:Topics to prepare for the interview - Data Structures, React JS, JavaScript, DBMS, AlgorithmsTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Practise DSA/coding consistently
Tip 2 : Choose a tech stack and Make side hobby projects
Tip 3 : Give mock interviews for your preparation evaluation

Application resume tips for other job seekers

Tip 1 : Pointers about your current job responsibility
Tip 2 : Side Projects with Tech stack

Final outcome of the interviewSelected

Skills evaluated in this interview

I applied via Recruitment Consulltant and was interviewed in Sep 2021. There were 2 interview rounds.

Round 1 - Aptitude Test 

Apti and coding

Round 2 - Technical 

(1 Question)

  • Q1. Questions on java a d sql

Interview Preparation Tips

Interview preparation tips for other job seekers - Bogus interview . Doesnt matter how you give the interview , they will choose some random guy who is not worthy maybe
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

4 question
2 very easy, one meduim but constraints were relaced, last question related to segment tree for traversing words

Are these interview questions helpful?
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

1 hour on data structures and algorithms

Round 2 - One-on-one 

(1 Question)

  • Q1. Build Netflix architecture
  • Ans. 

    Netflix architecture is a scalable microservices-based system with a focus on high availability and performance.

    • Use microservices architecture to break down the system into smaller, independent services

    • Implement a content delivery network (CDN) for efficient content distribution

    • Utilize cloud services like AWS for scalability and reliability

    • Implement a recommendation engine for personalized content suggestions

    • Use a dist...

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Priority Queue with linked list

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-

I applied via Campus Placement

Round 1 - Coding Test 

3 questions of dsa
1 of api

Round 2 - Technical 

(1 Question)

  • Q1. Graph based question to find the shortest path between 2 prime numbers by changing 1 digit at once and obtained number should be prime too.

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare Thoroughly dsa foe 1st round
For 2nd round there was low level design
But I couldn't get to the 2nd round

ByteDance Interview FAQs

How many rounds are there in ByteDance Software Engineer interview?
ByteDance interview process usually has 2 rounds. The most common rounds in the ByteDance interview process are Technical.
How to prepare for ByteDance Software Engineer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at ByteDance. The most common topics and skills that interviewers at ByteDance expect are Java, Algorithms, Android, Data Structures and Kafka.
What are the top questions asked in ByteDance Software Engineer interview?

Some of the top questions asked at the ByteDance Software Engineer interview -

  1. Leetcode Hard Largest Miltiple o...read more
  2. Binary search (not joki...read more
  3. Microservices in-depth (advantages/disadvantages, service mesh, communication p...read more

Tell us how to improve this page.

Content Moderator
309 salaries
unlock blur

₹2.7 L/yr - ₹6.3 L/yr

Quality Analyst
250 salaries
unlock blur

₹3.8 L/yr - ₹8.8 L/yr

SME
132 salaries
unlock blur

₹3.2 L/yr - ₹9 L/yr

Content Reviewer
76 salaries
unlock blur

₹2.5 L/yr - ₹6.8 L/yr

Accounts Manager
47 salaries
unlock blur

₹7 L/yr - ₹21 L/yr

Explore more salaries
Compare ByteDance with

Facebook

4.3
Compare

Udaan

3.9
Compare

Swiggy

3.7
Compare

Oyo Rooms

3.2
Compare
write
Share an Interview