Skip to content

Instantly share code, notes, and snippets.

View pigidser's full-sized avatar

pigidser

  • Mars LLC
  • Tbilisi, Georgia
View GitHub Profile
@pigidser
pigidser / binary search.py
Last active April 25, 2022 06:35 — forked from kolommik/connect_and_load.py
Pandas and MSSQL
from bisect import bisect_right, bisect_left
def solution(A:list):
if len(A) == 0:
return 1
A.sort()
ind = bisect_left(A, 0)
if ind == len(A):