Question 1
A beaver navigates a binary decision tree where 0 means Left and 1 means Right. If the 3-bit code 011 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 011 maps to leaf number $\text{(binary value)} + 1$, which leaf number does it reach?
A robot processes input $8$ by first adding $10$ and then multiplying by $4$. What is the output?
In tunnel #5, logs labeled A, B, C, D, E 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 4W 3B 5W (meaning 4 White, 3 Black, 5 White). How many pixels are in this row?
A beaver robot starts at $(0, 0)$ and must reach $(4, 2)$ moving $1$ unit North, South, East, or West per step. What is the minimum number of steps?
In network #5, a data packet travels from S to T along the weighted links shown (weights $7, 6, 3, 7$). What is the minimum total delay?
In packet #5, to transmit 111000 with EVEN parity (so the total number of 1s including the parity bit is even), what must the parity bit be?
In sorting task #5, a list of $5$ 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 #5, using binary search on a sorted list of $64$ names, what is the maximum number of comparisons needed to be sure whether a name is in the list?
On display #5, how many LED segments light up to display the digit 3 on a standard 7-segment display?
In a database, $10$ files have only Tag A, $10$ have only Tag B, and $5$ have both. How many files match the search query Tag A OR Tag B?
In schedule #5, four independent jobs take 4, 5, 6, 4 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 #5 shifts every letter forward by $4$ positions in the alphabet (A→E, B→F, ...). How is BEE encrypted?
A hash table has $7$ buckets numbered $0$ to $6$. Key $k$ is placed in bucket $k \bmod 7$. Which bucket stores key $50$?
A robot starts facing North and executes Turn Right 90° exactly $20$ times. Which direction is it facing at the end?