Metadata-Version: 2.4
Name: pythontantra
Version: 1.0.0
Summary: A package containing C++ and Python implementations for common DSA problems
Home-page: https://github.com/GitUtk/dsa-pkg-pypi
Author: antigravity
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-python
Dynamic: summary

# pythontantra

A Python package providing clean C++ and Python implementations for **48** classic Data Structures and Algorithms (DSA) problems, along with a fuzzy-searchable **79+ MCQ bank** for exams, interviews, and revision.

## Installation

```bash
pip install pythontantra
```

## Quick Start

```python
from pythontantra import dsa_search, dsa_cpp, dsa_python, dsa_mcq, dsa_help

# 1. Search & list all 48 available DSA problems
dsa_search()

# 2. Get C++ code for a specific problem (e.g. Problem 48)
dsa_cpp(48)

# 3. Get Python code for a specific problem (e.g. Problem 48)
dsa_python(48)

# 4. Fuzzy search MCQ bank (79+ questions with answers)
dsa_mcq("binary search")
dsa_mcq("double hashing")

# 5. Display interactive help manual
dsa_help()
```

## Available Functions

- `dsa_search()`: List all 48 available problems with their numerical IDs.
- `dsa_cpp(problem_num)`: Retrieve the C++ solution for problem number `problem_num` (1-48).
- `dsa_python(problem_num)`: Retrieve the Python solution for problem number `problem_num` (1-48).
- `dsa_mcq(search_query=None, limit=5)`: Fuzzy search across 79+ DSA Multiple Choice Questions by keyword/topic.
- `dsa_help()`: Displays comprehensive package help documentation.

*(Note: `pythontantra_search()`, `pythontantra_get()`, `pythontantra_mcq()`, and `pythontantra_help()` as well as legacy `codetantra_*` are also supported for backward compatibility).*

## Available Problems (1 - 48)

1. **Binary Search (Basic Iterative with Sorting)**
2. **Merge Sort (Basic)**
3. **Quick Sort (Basic)**
4. **Binary Search using Divide and Conquer**
5. **First and Last Occurrence of Element in a Sorted Array**
6. **Merge Sort with Recursion & Comparison Tracking**
7. **Inversion Pairs Count using Merge Sort**
8. **Quick Sort with Calls & Comparison Tracking**
9. **Contiguous Subarray with Largest Sum (Kadane's Algorithm)**
10. **Kth Largest Element in an Array (Min Heap)**
11. **Missing Number of the Sequence**
12. **Merge Sorted Array**
13. **Longest Binary Subarray after K Flips**
14. **Sorting by Set Bit Count using Divide and Conquer**
15. **Book Allocation with Minimum Maximum Load**
16. **Minimum Element in Rotated Sorted Array**
17. **Search in Rotated Sorted Array**
18. **Koko Eating Bananas**
19. **Single Number**
20. **Kth Missing Positive Number**
21. **Merge Two Sorted Linked Lists**
22. **Basic Hash Table Implementation**
23. **Hash Table with Double Hashing**
24. **Hash Table with Linear Probing**
25. **Hash Table with Quadratic Probing**
26. **Count Frequencies of Elements using Hashing**
27. **Check Nearby Duplicates using Hashing**
28. **Check for Pair with Given Sum using Hashing**
29. **Count Distinct Elements in Every Window of Size K**
30. **Top K Frequent Elements**
31. **Group Anagrams**
32. **Find Pair of Numbers with Target Sum**
33. **Hash Table with Separate Chaining**
34. **Maximum XOR Subarray with Hashing**
35. **Least K Elements**
36. **Count Distinct Elements in Every Window of Size K**
37. **Debugging Minimum Element using Divide and Conquer**
38. **Debugging Merge Sorted Array**
39. **Debugging Kth Smallest Element**
40. **Debugging Hash Table - Linear Probing**
41. **Quadratic Probing Technique**
42. **Linear Probing Technique**
43. **Strategic Battle**
44. **Maximum number of valid triplets**
45. **Hash Table using Open Hashing Separate Chaining**
46. **Longest Consecutive Number**
47. **First Non Repeating character**
48. **Intersection of two sorted Array**
