Oracle (IC4) Screening
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-05-19Added By Anonymous
Source: Link
Company: Oracle
Role: ic-4
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
You are given a list of inequalities comparing 2 elements at a time. Validate if using the list of inequalities a valid numeric ordering of elements can be created.
An example of the list of inequalities is below comparing 2 elements at a time. We need to return true/false if we can arrange elements (a, b, c, d, e, f, g) in a way which can sastisy the below list of inequalities
a < b,
b > c,
d < e,
f > g