Skip to content

Conversation

@Goku1999
Copy link

The problem in compiling this particular problem is because we are calling default constructor when it is not even present in the Node class

Christian Bender and others added 30 commits July 25, 2018 17:07
Add method for minimum number of coins required for given amount
Removing the Travis CI badge as it points to a dead URL. As this repository has [very few tests](https://github.com/TheAlgorithms/Java/search?q=Test&unscoped_q=Test), maybe a CI build might be a bit too much.
Remove Tracis CI badge from README.md
Bring fileName into correspondence with className which is marked as public
source coding is a little complex
Added MatrixFastPower.java
…rules

commit divideconquer\ClosesPair.java
Refactorized ClosestPair.java. Finding nearest cartesian points.

Refactorized ClosestPair.java. Finding nearest cartesian points.
Refactorized ClosestPair.java in order to be compliant with java sun rules
Added and explanation to SkylineProblem.
IvanKuzaev and others added 28 commits February 3, 2019 08:50
Method prime(num) uses only odd numbers from 3 to square root of num as divisors.
In method functioning(y) we iterate over odd numbers as all even numbers (except of 2) are not prime.
In method functioning(y) we check at first if the number is palindrome and then if it's prime, so we don't have to call the heavy prime() method for every number.
The speed of searching palindromic primes is significantly increased.
Update PalindromicPrime.java
Added Euler's totient Function
- Fix wrong assignation
Include condition to check if the queue is full when inserting values into the queue
Update PriorityQueues.java
o fixed function "fibMemo" according to acceptance criteria in #708
o fixed function "fibBotUp" according to acceptance criteria in #708
#708 (bugfix for fibonacci sequence function)
I made the code shorter and less prone to mistakes by removing the "size" variable altogether from the LinkedList class. I found that after each push/pop operation, changing the value of size did make the code more efficient, but made it more prone to mistakes. So, for empty stack, a simple "head == null" was enough, which has been incorporated.
Updated StackOfLinkedList.java
- The "count" variable made the code more prone to errors, so I removed and replaced it with another "getSize()" function. 
- The value of "next" was initialized to null.
- Major improvements of code were given to "insertNth()" and "deleteHead()" functions for efficiency.
- A new function "deleteNth()" was defined, increasing the usefulness of the program.
Major Updates in SinglyLinkedList.java
@varunu28
Copy link
Contributor

@Goku1999 Please don't raise a PR for merging development into master

@varunu28 varunu28 closed this Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.