ByteDance Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Count buggy vs non-buggy by employer
Count buggy vs non-buggy submissions for each employer_id, including employers with zero submissions. Return employer_id, buggy_count, non_buggy_count...
Maximize products bought under budget
Given N products and M customers, for each customer find the list of distinct products they can buy without exceeding their budget such that the numbe...
Design recommendations objective balancing growth and monetization
Design a Multi-Objective Recommender for Long-Form Content You are designing the ranking objective and measurement plan for a long-form content recomm...
Design an interference-robust A/B test for monetization
A/B Test Design: New Tipping UI on Creator Posts Context: You are launching a new tipping UI on creator (PGC/OGC) posts to increase creator monetizati...
Compute and rank top bad advertisers
SQL on ad safety. Assume the following schema and sample rows. Use ANSI SQL. Today is 2025-09-01; interpret “last 7 days” as 2025-08-26 00:00:00 to 20...
Model overdispersed counts; estimate treatment lift
Weekly posts per creator are overdispersed and zero‑inflated. In a creator‑level randomized test of a nudge: - Control: n_c=40,000 creators, total pos...
Implement an LRU cache
Problem: LRU Cache Design and implement a data structure that supports an LRU (Least Recently Used) cache with a fixed capacity. Requirements Implemen...
Determine if a string can be segmented
Given a string s and a list of strings wordDict, determine whether s can be segmented into a sequence of one or more dictionary words. - You may reuse...
Explain your VLM project end-to-end
You are asked to deep-dive (“resume grilling”) on a Vision-Language Model (VLM) project listed on your resume. Cover the following clearly and concret...
Explain Transformer, GPT vs BERT, and PR metrics
Answer the following conceptual questions: 1. Transformer architecture - Describe the main components of a Transformer block and what each part doe...
Explain C++ containers, segfaults, and virtual dispatch
Answer the following C++ conceptual questions: 1. C++ standard containers implementation For common C++ standard library containers such as std::...
Compute length of longest increasing subsequence
You are given an integer array nums of length n. A subsequence of nums is a sequence that can be derived from nums by deleting zero or more elements w...
Generate all safe queen placements on board
You are given an integer n representing the size of a chessboard (n × n). You need to place n queens on the board so that no two queens attack each ot...
Define QKV for recommender cross-attention
You are designing a deep-learning–based recommendation system that uses a Transformer-style cross-attention block to model the interaction between a u...
Explain DPO and construct its training data
You are working on a project to fine-tune a large language model (LLM) using Direct Preference Optimization (DPO). Answer the following: 1. Conceptual...
Solve pair-counting and account-merging problems
Problem A — Count qualifying products You are given two integer arrays A and B, and an integer T. For each element a in A, count how many elements b i...
Design system to detect privacy-leak records
You are given a very large database that contains user data (both structured fields and unstructured text such as logs, messages, and documents). The ...
Find kth smallest in sorted 2D matrix
You are given an n x m matrix of integers where each row and each column is sorted in non-decreasing order. You are also given an integer k such that ...
Describe career plan and teamwork approach
Answer the following behavioral questions: 1. Career planning: What are your next 1–3 year career goals, and why are you pursuing this role/team now? ...
Plan DS approach for biker delivery project
You are a Data Scientist supporting a “biker” (delivery rider) product/project for a food-delivery platform. An interviewer gives only a short descrip...