Base
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- backend
Research direction
Start by reviewing the availability-ranges example linked in the issue and the repository's existing entry points, since no files or tests are named. Compare the current range approach with the proposed slot-based boolean bitmaps; the work is done when blocked spaces and multiple availability maps can be represented and queried with the intended edge cases covered.
Written by the indexing model from the issue text.
Description
Here's the basic algorithm .
Problem
- Availability ranges are based off of a simple single element array which is then modified to handle the areas that have been booked or blocked.
- These areas are not accessible anymore and thus cannot be locked again.
A simple implementation of the above can be found here
https://snips.reaper.im/snippets/availability-ranges.html
Obviously the above has quite a few cases which aren't handled and the space and time complexity of the above is off the charts for something so simple.
Possible Solution
- Construct the range based on a given number of slots, example a 24 hour availability would add up to be a 1440 slots each pointing to 1 minute
- each slot acts as a boolean point of whether blocked or not.
- you can then create multiple such bitmaps to handle blocking of multiple spaces and this could be a much faster way to find based on the keying logic, so then you can use the key to find the last booked point in the bitmap and also more flexible since the slots actually have no other meaning, thus being a little more generic
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Crush Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ElementsProject/cln-application#167 · 1 comment · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Quantco/pnpm-licenses#17 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100