From c843ffc66ba625053873bae575ba6230c8df9b5b Mon Sep 17 00:00:00 2001 From: Abhijit2505 Date: Thu, 13 Aug 2020 07:36:04 +0530 Subject: [PATCH] Added new piece of code --- eduAlgo.egg-info/PKG-INFO | 36 ++++++++++++++++++++---------------- edualgo/LinkedList.py | 21 +++++++++++++++++++++ setup.py | 2 +- 3 files changed, 42 insertions(+), 17 deletions(-) diff --git a/eduAlgo.egg-info/PKG-INFO b/eduAlgo.egg-info/PKG-INFO index cab8bab..2f8f007 100644 --- a/eduAlgo.egg-info/PKG-INFO +++ b/eduAlgo.egg-info/PKG-INFO @@ -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: abhijittripathy99@gmail.com License: MIT Description: + + # eduAlgo      -     +    [![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) @@ -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 - - * Selection sort - - * Module Name : **LinkedList** - * Palindromic Linked List - - * Remove Linked List Elements - - * Remove Duplicates From a Sorted List - - * Merge Two Sorted List - - * Reverse Linked List - - * Delete Node In a Linked List - - * Middle Of the Linked List - - + ## Documentation + The documentation for the included methods and their implementations can be found here - eduAlgo-Documentation ## Algorithms Yet to Publish @@ -94,6 +84,20 @@ Description: This package is under **MIT License** copyright @Abhijit Tripathy + ## About The Contributors + + + + + + +
+ + + Abhijit Tripathy
+ DSA Developer and Python Programmer +
+ Keywords: algorithms Platform: UNKNOWN Classifier: Development Status :: 3 - Alpha diff --git a/edualgo/LinkedList.py b/edualgo/LinkedList.py index 7cbc966..c4d00e5 100644 --- a/edualgo/LinkedList.py +++ b/edualgo/LinkedList.py @@ -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 diff --git a/setup.py b/setup.py index 1d851d3..edfd898 100644 --- a/setup.py +++ b/setup.py @@ -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',