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