forked from TheAlgorithms/Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Added algorithm for swapping linkedlist nodes #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Aashu-11
wants to merge
27
commits into
master
Choose a base branch
from
Aashu-11-patch-2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Sorted Linked List added with Javadoc and tests * "Added comments to SortedLinkedList.java to describe the implementation and provide a reference link." * Upgraded test from junit 4 to junit 5 * Added space before braces of functions * Rename SortedlinkedListTest.java to SortedLinkedListTest.java * made to string null safe * Updated tail * "Added assignment of `this.tail` to `newNode` in `SortedLinkedList` class." * Remove assertions for minValue and maxValue in empty list test * tried to get link updated * "Fixed whitespace and formatting issues in SortedLinkedList.java and SortedLinkedListTest.java" * formatting of test file corrected * Removed few whitespaces * Addressed comments by alxkm * "Updated toString method to include brackets and removed default Node constructor." * tests updated
…lgorithm (TheAlgorithms#5539) feat: removing duplicate implementation of Dutch National Flag Sort Implementation Co-authored-by: sailok.chinta <[email protected]>
…orithm (TheAlgorithms#5541) * feat: Remove duplicate implementation of Dutch National Flag Sort Algorithm * feat: update DIRECTORY.md --------- Co-authored-by: sailok.chinta <[email protected]>
* Added LongestArthmeticSubsequence --------- Co-authored-by: Piotr Idzik <[email protected]>
The above algorithm helps in swapping nodes of linkedlists.
* Add function documentation and parameterized tests to Sudoku.java * Update directory * Update directory * Fix clang format errors * Change * Fix * Fix * Fix * Fix * Fix * Fix * Fix * Remove extra line * Change values * Fix * Remove test * Update directory * Small comment fix * Add comment * Generalize comment * Fix comment * Update directory * Fix comment * Add changes suggested --------- Co-authored-by: Hardvan <[email protected]>
* Add `Infix To Prefix` new algorithm * Update directory * Update directory * Fix clang * Fix clang * Add more tests * Fix comma error * Fix test cases * Fix comment * Remove unused import * Update directory * Add tests for null & empty strings * Implement suggested changes * Update directory * Fix comment --------- Co-authored-by: Hardvan <[email protected]> Co-authored-by: Alex Klymenko <[email protected]>
* Add `PrefixToInfix.java` new algorithm * Update directory * Fix clang error * Update directory * Fix comment * Add suggested changes --------- Co-authored-by: Hardvan <[email protected]> Co-authored-by: Alex Klymenko <[email protected]>
* feat: add conversion logic from integer to english * feat: update DIRECTORY.md * feat: fix linting issues * feat: fix build issue * feat: address review comments --------- Co-authored-by: sailok.chinta <[email protected]> Co-authored-by: Alex Klymenko <[email protected]>
… to 5.11.2 (TheAlgorithms#5570) Chore(deps-dev): bump org.junit.jupiter:junit-jupiter-api Bumps [org.junit.jupiter:junit-jupiter-api](https://github.com/junit-team/junit5) from 5.11.1 to 5.11.2. - [Release notes](https://github.com/junit-team/junit5/releases) - [Commits](junit-team/junit-framework@r5.11.1...r5.11.2) --- updated-dependencies: - dependency-name: org.junit.jupiter:junit-jupiter-api dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…5.11.2 (TheAlgorithms#5572) Chore(deps-dev): bump org.junit.jupiter:junit-jupiter Bumps [org.junit.jupiter:junit-jupiter](https://github.com/junit-team/junit5) from 5.11.1 to 5.11.2. - [Release notes](https://github.com/junit-team/junit5/releases) - [Commits](junit-team/junit-framework@r5.11.1...r5.11.2) --- updated-dependencies: - dependency-name: org.junit.jupiter:junit-jupiter dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ithms#5571) Bumps [org.junit:junit-bom](https://github.com/junit-team/junit5) from 5.11.1 to 5.11.2. - [Release notes](https://github.com/junit-team/junit5/releases) - [Commits](junit-team/junit-framework@r5.11.1...r5.11.2) --- updated-dependencies: - dependency-name: org.junit:junit-bom dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The above algorithm helps in swapping nodes of linkedlists.
clang-format -i --style=file path/to/your/file.java