python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
uniquely reporting intersections in a list of axis-aligned rectangles
I have a list of coordinates that form axis-aligned 2D boxes (axis-oriented/iso-oriented rectangles, rects).
I want to see how many boxes intersect each other without repeating it. For example, I have...
wasi hassan
Votes: 0
Answers: 3
Split a dataframe into new dataframes of overlapping columns in R
I have a dataframe with many hundreds of columns and as many rows. The first column contains an ID. All following columns represent an observation. These have the values 1 or 0. Now I want to divide t...
Olaf Pleines
Votes: 0
Answers: 0
how to find intersection?
I have two list.
red = [[2,2], [2, 3], [2, 4], [3, 2], [3, 3], [3, 4], [4, 2], [4, 3], [4, 4]]
blue = [[3, 3], [3, 4], [3, 5], [3, 6], [4, 3], [4, 4], [4, 5], [4, 6], [5, 3], [5, 4], [5,...
yamma
Votes: 0
Answers: 1
Typescript: problem with intersection of types containing a subset of specialized arrays
I've a problem with intersection of types containing array members whose type is a subset of a specific type. It's harder to explain for me than simply show you the code.
This is a custom type
type My...
LaboDJ
Votes: 0
Answers: 0