Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/sangupta/ps

Problem Solving
https://github.com/sangupta/ps

algorithms bloom-filters design-thinking java

Last synced: 25 days ago
JSON representation

Problem Solving

Lists

README

        

# Problem Solving

[![Analytics](https://ga-beacon.appspot.com/UA-1187941-16/ps)](https://github.com/sangupta/ps)

`ps` is a collection of various computing problems and their corresponding solutions
that I could think of. The problems range in various categories such as design,
algorithms, performance optimizations, and more.

Feel free to add a [Github issue](https://github.com/sangupta/ps/issues) for any discrepancy,
typo, alternatives, or a different solution that I might not have considered. Also feel free to
add issues for problems that you would like me to work upon - though it may take me a few days to
research and jot my notes here.

If you wish to contribute please read the [guidelines](CONTRIBUTING.md).

**Dedicated to all the friends who inspired me to learn and experiment.**

## Notes

### Algorithms

* [Fastest sorting of bounded integers (huge arrays)](solutions/2016/fastest-sorting-integers.md) (Nov 2016)
* [Fastest way to merge multiple integer sets](solutions/2016/merge-multiple-integer-sets.md) (Nov 2016)
* [Fastest way to find duplicates in multiple integer sets](solutions/2016/fastest-duplicates-integer-sets.md) (Nov 2016)

### Data Structures

* [Discussion on how finding duplicates in integer arrays leads to Bloom Filters](solutions/2016/integer-duplicates-to-bloom-filters.md) (Nov 2016)

### Design

* [Find degrees of separation in a social graph](solutions/2016/degrees-of-separation-social-graph.md) (Nov 2016)
* [Design a stateless user-session mechanism](solutions/2016/stateless-user-session.md) (Dec 2016)
* [Design a rate-limited web-scraper](solutions/2016/rate-limited-web-scraper.md) (Dec 2016)
* [Design a Content Delivert Network, CDN](solutions/2017/cdn-design.md) (Oct 2017)
* [Design a simple MongoDB clone](solutions/2018/build-mongodb.md) (Dec 2018)

### Java Virtual Machine

* [Testing for concurrency in Java](solutions/2016/concurrent-testing-junit.md) (Oct 2017)
* [Java memory allocation in stack and heap](solutions/2017/java-memory-allocation-stack-heap.md) (Oct 2017)

### Others

* [Stop multiple form submission in web requests - also called **Replay Attack**](solutions/2016/stop-replay-attack.md) (Dec 2016)

## Draft notes/Backburner

Problems I want to jot my thoughts and notes on:

* How to find the top-k IPs hitting a service
* [Design a scalable user authentication system](solutions/2017/scalable-user-auth-system.md)
* Design a shopping cart
* Design a notification system
* Design a CRON scheduler
* Design an object-pool or a connection-pool
* Design an email-delivery system like Mailchimp
* Design a simlpe S3 clone
* Build a simple Redis clone

## License

```
MIT License

ps - Problem Solving
Copyright (c) 2016-2018, Sandeep Gupta

https://github.com/sangupta/ps

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```