</>OfferRetriever
DashboardDiscuss
NEW

Halloween Sale

Unlock all premium questions for over 30% off

$10.42$7.08/mo

--

:

--

:

--

:

--

Get this deal
Back to Confluent Questions

Tail Last N Lines

Easy

Question

Write a function that behaves like the Linux command tail -n. The file is handed to you as a list of strings, one string per line, and you must return its final n lines. When the file has fewer than n lines, return every line it has. ...

Asked at:Confluent

More Confluent interview questions

All Confluent interview questions
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.