This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
import sys | |
import bisect | |
def type_1_query(tv, value, minimum_time_to_right): | |
# find the position of the minimum value | |
pos = bisect.bisect_left(tv, (value, -1)) | |
# print "min ", value, " at idx", pos | |
# sort all valid member based on time |