The Visa online assessment contained two coding problems.
Interview Details
Question 1 — Perfect Substring
Given a string s containing only numeric characters and an integer k, count how many substrings satisfy the following condition: Every distinct digit appearing in the substring must occur exactly k times.
For example, consider this rewritten input:
s = "33040433"
k = 2
s = "33040433"
k = 2
Some qualifying substrings include "33" because digit 3 appears exactly twice,
Unlock Full Details
Create a free account to unlock this interview experience report.