Skip to content

Commit

Permalink
Added new piece of code
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhijit2505 committed Aug 13, 2020
1 parent 9d1077b commit c843ffc
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 17 deletions.
36 changes: 20 additions & 16 deletions eduAlgo.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
Metadata-Version: 2.1
Name: eduAlgo
Version: 1.1.1
Version: 1.1.2
Summary: An educational Algorithmic Library
Home-page: https://github.com/Abhijit2505/eduAlgo
Author: Abhijit Tripathy
Author-email: [email protected]
License: MIT
Description:
<img src ="https://edualgo.github.io/documentation/assets/images/eduAlgo.png" height = "250">

# eduAlgo

<img src="https://img.shields.io/github/license/Abhijit2505/eduAlgo?style=for-the-badge">&nbsp;<img src ="https://img.shields.io/github/languages/code-size/Abhijit2505/eduAlgo?style=for-the-badge">&nbsp;<img src = "https://img.shields.io/github/contributors/Abhijit2505/eduAlgo?style=for-the-badge">&nbsp;<img src ="https://img.shields.io/github/last-commit/Abhijit2505/eduAlgo?style=for-the-badge">&nbsp;<img src="https://img.shields.io/pypi/wheel/eduAlgo?style=for-the-badge">

<img src = "https://img.shields.io/pypi/status/eduAlgo?style=for-the-badge">&nbsp;<img src ="https://img.shields.io/pypi/v/eduAlgo?style=for-the-badge&logo=PyPi">&nbsp;<img src="https://img.shields.io/github/commit-activity/m/Abhijit2505/eduAlgo?style=for-the-badge">&nbsp;<img src ="https://img.shields.io/github/release-date/Abhijit2505/eduAlgo?style=for-the-badge">
<img src = "https://img.shields.io/pypi/status/eduAlgo?style=for-the-badge">&nbsp;<img src ="https://img.shields.io/pypi/v/eduAlgo?style=for-the-badge&logo=PyPi">&nbsp;<img src ="https://img.shields.io/github/release-date/Abhijit2505/eduAlgo?style=for-the-badge">


[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com) [![forthebadge](https://forthebadge.com/images/badges/built-by-developers.svg)](https://forthebadge.com) [![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)
Expand All @@ -29,20 +31,8 @@ Description:
* Getting resources, articles etc to study about python and Algorithms
* Become a handy tool for the programmers while using different algorithms on daily basis

## Current Algorithms

* Module Name : **algorithm**
* Bubble sort - <img src ="https://img.shields.io/badge/-implemented-green">
* Selection sort - <img src ="https://img.shields.io/badge/-implemented-green">
* Module Name : **LinkedList**
* Palindromic Linked List - <img src ="https://img.shields.io/badge/-implemented-green">
* Remove Linked List Elements - <img src ="https://img.shields.io/badge/-implemented-green">
* Remove Duplicates From a Sorted List - <img src ="https://img.shields.io/badge/-implemented-green">
* Merge Two Sorted List - <img src ="https://img.shields.io/badge/-implemented-green">
* Reverse Linked List - <img src ="https://img.shields.io/badge/-implemented-green">
* Delete Node In a Linked List - <img src ="https://img.shields.io/badge/-implemented-green">
* Middle Of the Linked List - <img src ="https://img.shields.io/badge/-implemented-green">

## Documentation
The documentation for the included methods and their implementations can be found here - <a href = "https://edualgo.github.io/documentation/index.html">eduAlgo-Documentation</a>

## Algorithms Yet to Publish

Expand Down Expand Up @@ -94,6 +84,20 @@ Description:

This package is under **MIT License** copyright @<a href = "https://github.com/Abhijit2505">Abhijit Tripathy</a>

## About The Contributors

<table>
<tr>
<td>
<img src = "https://edualgo.github.io/documentation/assets/images/Abhijit23.jpeg" height = "100">
</td>
<td>
<a href="https://github.com/Abhijit2505">Abhijit Tripathy</a></br>
DSA Developer and Python Programmer
</td>
</tr>
</table>

Keywords: algorithms
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Expand Down
21 changes: 21 additions & 0 deletions edualgo/LinkedList.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,24 @@ def getDecimalValue(self,head):
temp = temp.next

return num

def nextLargerNodes(self,head):
result = []
temp = head
while(temp):
result.append(temp.val)
temp = temp.next

stack = []
n = len(result)
i = n-1
while(i >= 0):
next = 0
while(len(stack)!=0 and stack[-1] <= result[i]):
stack.pop()
if(len(stack)!=0 and stack[-1] > result[i]):
next = stack[-1]
stack.append(result[i])
result[i] = next
i-=1
return result
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# calling the setup function
setup(name='eduAlgo',
version='1.1.1',
version='1.1.2',
description='An educational Algorithmic Library',
long_description=long_description,
long_description_content_type = 'text/markdown',
Expand Down

0 comments on commit c843ffc

Please sign in to comment.