Question 1
A beaver navigates a binary decision tree where 0 means Left and 1 means Right. If the 3-bit code 001 maps to leaf number $\text{(binary value)} + 1$, which leaf number does it reach?
Ngân hàng đề / Luyện thi phong cách Bebras
15 câu · 60 phút. Đáp án và lời giải sẽ hiện sau khi nộp bài.
A beaver navigates a binary decision tree where 0 means Left and 1 means Right. If the 3-bit code 001 maps to leaf number $\text{(binary value)} + 1$, which leaf number does it reach?
A robot processes input $6$ by first adding $8$ and then multiplying by $2$. What is the output?
In tunnel #3, logs labeled A, B, C are pushed one by one into a narrow dead-end tunnel (LIFO stack), then pulled out one by one. In what order do they come out?
An image row is compressed with Run-Length Encoding as 3W 5B 3W (meaning 3 White, 5 Black, 3 White). How many pixels are in this row?
A beaver robot starts at $(0, 0)$ and must reach $(6, 4)$ moving $1$ unit North, South, East, or West per step. What is the minimum number of steps?
In network #3, a data packet travels from S to T along the weighted links shown (weights $5, 3, 2, 6$). What is the minimum total delay?
In packet #3, to transmit 111110 with EVEN parity (so the total number of 1s including the parity bit is even), what must the parity bit be?
In sorting task #3, a list of $7$ distinct numbers is in completely reverse order. What is the minimum number of adjacent swaps needed to sort it into increasing order?
In search task #3, using binary search on a sorted list of $16$ names, what is the maximum number of comparisons needed to be sure whether a name is in the list?
On display #3, how many LED segments light up to display the digit 0 on a standard 7-segment display?
In a database, $12$ files have only Tag A, $7$ have only Tag B, and $7$ have both. How many files match the search query Tag A OR Tag B?
In schedule #3, four independent jobs take 4, 5, 6, 6 minutes. With $2$ identical workers working in parallel (each job runs on $1$ worker without interruption), what is the minimum total time to finish all $4$ jobs?
Cipher #3 shifts every letter forward by $2$ positions in the alphabet (A→C, B→D, ...). How is CAT encrypted?
A hash table has $5$ buckets numbered $0$ to $4$. Key $k$ is placed in bucket $k \bmod 5$. Which bucket stores key $52$?
A robot starts facing North and executes Turn Right 90° exactly $18$ times. Which direction is it facing at the end?