注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
题目不是leetcode :)
Context: You are working with Amazon's data analysis team, analyzing customer behavior through clickstream data. This data is represented as binary strings, where '1' signifies a "significant action" (e.g., adding an item to the cart, making a purchase) and '0' signifies an "insignificant action" (e.g., Browse, viewing a product).
Definition of a "Special" Behavior Pattern: A behavior patter
Function Description: Complete the functionwhich takes one parameter:- : A binary string that represents a user's interaction history.
The function must return an integer denoting the number of special substrings of the given string. |