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