Skip to content

Commit

Permalink
rename + docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jcpaik committed Jun 27, 2023
1 parent f66ff87 commit 6b77b57
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/solution.py → lib/point_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

from functools import cache

class Solution:
class PointSet:
'''
A helper class calculating maximum cap/cup lengths of a point set
This is not used for finding counterexamples of Erdos-Szekeres
:param v: A dictionary mapping every triple (i, j, k) with
0 <= i < j < k < n to a boolean on whether they form a 3-cap or a 3-cup
for a fixed integer n
'''
def __init__(self, v):
self.m = max(max(k) for k in v) + 1
self.v = v
Expand Down

0 comments on commit 6b77b57

Please sign in to comment.