Leetcode Daily Question
@leetcodeDailyQuestionChannel
2.45K
subscribers
517
files
2.16K
links
Why are you asking me to do Leetcode for this CSS job?
Download Telegram
Join
Leetcode Daily Question
2.45K subscribers
Leetcode Daily Question
leetcode.cn
2025-11-24
🟢
1018.binary-prefix-divisible-by-5
🏷️
Tags
#bit_manipulation
#array
Telegraph
binary-prefix-divisible-by-5
给定一个二进制数组 nums ( 索引从0开始 )。 我们将xi 定义为其二进制表示形式为子数组 nums[0..i] (从最高有效位到最低有效位)。
来源
答案
Leetcode Daily Question
leetcode.com
2025-11-24
🟢
1018.binary-prefix-divisible-by-5
🏷️
Tags
#bit_manipulation
#array
Telegraph
binary-prefix-divisible-by-5
You are given a binary array nums (0-indexed). We define xi as the number whose binary representation is the subarray nums[0..i] (from most-significant-
bit
to least-significant-
bit
).
Source
Solution