Hash Divided String
CodingPhoneSoftware EngineerReported May, 2026Medium Frequency
Company question banks are included with the Insider plan.
Split the lowercase string s into consecutive chunks of length k; its length is divisible by k. For each chunk, add the alphabet indices of its characters (a=0 through z=25), reduce the sum...