Skip to content
DeepForgeby svx
All problems
EasyStatisticsst-269

Dedup Threshold Decision

Problem

Return a list of booleans marking which similarity scores are greater than or equal to the threshold. Return an empty list for empty input.

Test cases

case 1
in: [[0.9,0.8,0.95],0.9]
expected: [true,false,true]
case 2
in: [[],0.5]
expected: []
case 3
in: [[0.1],0]
expected: [true]
case 4
in: [[1,0.99],0.995]
expected: [true,false]
Starter codePython
def dedup_flags(similarities, threshold):
    # Your code here
    pass

4 test cases · run your code against them in the editor