Katkat

Solve Five Core Python Data-Processing Exercises

CitadelSite Reliability Engineer · Technical Screen

Last updated

Implement and explain: repeat a message `n` times with blank lines; square a list then reverse it; FizzBuzz; count case-sensitive words; and return the second-largest unique integer or `None`. Make the API or object boundaries explicit, then cover invariants, edge cases, testing strategy, and operational trade-offs.

Solve Five Core Python Data-Processing Exercises

Implement and explain: repeat a message n times with blank lines; square a list then reverse it; FizzBuzz; count case-sensitive words; and return the second-largest unique integer or None.

Constraints & Assumptions

  • Inputs fit memory and words are whitespace-delimited.
  • Functions return values except the explicitly printed exercises.

Clarifying Questions to Ask

  • What should negative n do?
  • Must input lists remain unchanged?

Follow-up questions

  • How would each be tested?
  • Which operations can stream?