Company: Texas

Difficulty: medium

Problem Statement

Employee Filter with Streams Filter employee records by a requested field. Input Format `n`; then `n` lines `id name position department`; then `field operator value`. Field is `name`, `position`, or `department`; operator is `=` or `<>`. Fields contain no spaces. Output Format Matching IDs in input order, space-separated. Notes The source supplied a predicate only; this standard-input contract makes its stated equality/inequality behavior deterministic.

More Texas OA questionsInterview experiences