Consultants Interview Questions

187,942 consultants interview questions shared by candidates

In pseudocode, write a function that takes in an arbitrary string of lowercase letters and an integer n of 0 or more. Return the number of times the character 'a' appears in the string, reading in n characters from the string, in order. If n is greater than the length of the string, loop back to the beginning of the string upon reaching the end.
avatar

Implementation Consultant

Interviewed at Fast Enterprises

3.7
Nov 11, 2018

In pseudocode, write a function that takes in an arbitrary string of lowercase letters and an integer n of 0 or more. Return the number of times the character 'a' appears in the string, reading in n characters from the string, in order. If n is greater than the length of the string, loop back to the beginning of the string upon reaching the end.

Viewing 61 - 70 interview questions

Glassdoor has 187,942 interview questions and reports from Consultants interviews. Prepare for your interview. Get hired. Love your job.