Cognizant, Recently Asked Online Assessments in 4 Oct, 2024 | Max Consecutive Wins

Cognizant · Question · Posted Apr 2026

Question 1: Maximum Consecutive Wins Problem Statement: You are developing a feature for a mobile game that tracks player performance. The game records the results of consecutive rounds as a binary array A, where 1 indicates a win and 0 indicates a loss. The game developers want to analyze how well players are doing by determining the longest streak of consecutive wins. Your task is to find and return an integer value representing the count of the maximum number of ...

The full answer & interview discussion are available to premium members.

Log in Create a free account