date val cal_val
1/12/2017 0:15 (0_04),(1_08),(0_12),(1_14) (0_04),(1_08),(0_12),(1_14)
1/12/2017 0:30 (0_22),(0_25),(1_29) (0_22),(1_29)
1/12/2017 0:45 (1_34),(1_38),(0_40),(1_44) (1_38),(0_40),(1_44)
1/12/2017 1:00 (1_47),(1_49),(1_53),(1_57),(0_59) (1_57),(0_59)
1/12/2017 1:15 (0_07),(0_09),(0_10),(0_13),(1_14) (0_7),(1_14)
如何在特殊字符“(”之后搜索每个字符,如果它们是连续的或
带有“0”的冻结值,那么在“_”之后考虑最小值,否则如果它是“1”,则从最大位置考虑,如果有没有连续的值,它保持
不变。
i.e in row_1 : there is no consecutive values.
row_2 : (0_22),(0_25) are consecutive then consider min i.e (0_22) and later
row_3 : (1_34),(1_38) are consecutive then consider max i.e (1_38) and later
row_4 : (0_07),(0_09),(0_10),(0_13),(1_14) are consecutive then consider min i.e (0_7) and later
提前致谢。