SSE| Rippling| Reject

rippling logo
rippling
SDE II
June 3, 20259 reads

Summary

I was rejected after a Coderpair round at Rippling where I was asked to implement a rule validation system for expenses.

Full Experience

Got this question in Coderpair round:

We have a list of expense and rules. Aim is to validate rules for each expense.

Each expense is similar to

{ 
expenseid: "1"
itemId: "Item1"
expensetype: "Food"
amountInUsd : "250"
sellerType : "restaurant"
SellerName "ABC restaurant"

}

List of rules similar to
- Total expense should not be > 175
- Seller type restaurant should not have expense more that 45
- Entertainment expense type should not be charged


Run the rules on expense and flag the rule which do not satisfy. Implement following:

evaluateRule(List<rule> , List<expense>)

Interview Questions (1)

Q1
Expense Rule Validation System
Data Structures & AlgorithmsMedium

We have a list of expense and rules. Aim is to validate rules for each expense.

Each expense is similar to

{ 
expenseid: "1"
itemId: "Item1"
expensetype: "Food"
amountInUsd : "250"
sellerType : "restaurant"
SellerName "ABC restaurant"

}

List of rules similar to
- Total expense should not be > 175
- Seller type restaurant should not have expense more that 45
- Entertainment expense type should not be charged


Run the rules on expense and flag the rule which do not satisfy. Implement following:

evaluateRule(List<rule> , List<expense>)

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!