docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "This criteria evaluates how well the engineer uses lodash's sortedIndexBy function to efficiently find insertion positions in a sorted array based on an object property (price). The focus is on proper usage of this specific lodash method rather than implementing custom sorting or searching logic.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses sortedIndexBy",
"description": "The implementation uses lodash's sortedIndexBy function to find the insertion index in the sorted catalog array",
"max_score": 50
},
{
"name": "Correct iteratee function",
"description": "Provides the correct iteratee function to sortedIndexBy that extracts the 'price' property from product objects for comparison",
"max_score": 30
},
{
"name": "Proper function signature",
"description": "The sortedIndexBy function is called with both the sorted array and the new product value as arguments in the correct order",
"max_score": 10
},
{
"name": "Returns correct value",
"description": "The function correctly returns the numeric index value from sortedIndexBy without additional unnecessary transformations",
"max_score": 10
}
]
}