Skip to content

Instantly share code, notes, and snippets.

@fxsjy
fxsjy / find_nth_int.py
Created September 12, 2012 06:40 — forked from yongsun/find_nth_int.py
find nth integer in distributed env
#!/usr/bin/python
import numpy.random as random
from bisect import bisect_left, bisect_right
class SlaveNode:
def __init__ (self, data):
self.data = sorted(data)
def get_range (self):