Title: I think the method in SinglyLinkedList is not right implementation, · Issue #2938 · TheAlgorithms/Java · GitHub
Open Graph Title: I think the method in SinglyLinkedList is not right implementation, · Issue #2938 · TheAlgorithms/Java
X Title: I think the method in SinglyLinkedList is not right implementation, · Issue #2938 · TheAlgorithms/Java
Description: I think the code following is not the right implementation, https://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/datastructures/lists/SinglyLinkedList.java /** Swaps nodes of two given values a and b. */ publ...
Open Graph Description: I think the code following is not the right implementation, https://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/datastructures/lists/SinglyLinkedList.java /** Swaps no...
X Description: I think the code following is not the right implementation, https://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/datastructures/lists/SinglyLinkedList.java /** Swaps no...
Opengraph URL: https://github.com/TheAlgorithms/Java/issues/2938
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"I think the method in SinglyLinkedList is not right implementation,","articleBody":"I think the code following is not the right implementation,\r\n\r\nhttps://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/datastructures/lists/SinglyLinkedList.java\r\n\r\n/**\r\n* Swaps nodes of two given values a and b.\r\n*\r\n*/\r\npublic void swapNodes(int a, int b) {\r\nNode currentNode = head;\r\nNode temp = null;\r\nwhile (currentNode != null) {\r\nif (currentNode.next.value == a) {\r\ntemp = currentNode.next;\r\n}\r\nif (currentNode.next.value == b) {\r\ncurrentNode.next = temp;\r\n}\r\ncurrentNode = currentNode.next;\r\n}\r\n}\r\n\r\n","author":{"url":"https://github.com/NewPZP","@type":"Person","name":"NewPZP"},"datePublished":"2022-02-09T09:43:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/2938/Java/issues/2938"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6a525dbb-abf8-ecf4-fc5f-a84fec04997f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD4C:B49DA:296C45:376EF9:6A5FEEE2 |
| html-safe-nonce | ce5a64e28f1f2617800971ffd657818741042c6cda28f44d45c122d267613672 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDRDOkI0OURBOjI5NkM0NTozNzZFRjk6NkE1RkVFRTIiLCJ2aXNpdG9yX2lkIjoiNzUwNzQ5NzIwNDc2Njk5NDE0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5192fbbc1f11e36e8b93517890e696473fae1be136369e9c6329ec2481819b5f |
| hovercard-subject-tag | issue:1128291089 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TheAlgorithms/Java/2938/issue_layout |
| twitter:image | https://opengraph.githubassets.com/51faefefd3211de06e15e153dd3eb9a2246ce3a5aaf07dd0bc0d8269c82c011e/TheAlgorithms/Java/issues/2938 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/51faefefd3211de06e15e153dd3eb9a2246ce3a5aaf07dd0bc0d8269c82c011e/TheAlgorithms/Java/issues/2938 |
| og:image:alt | I think the code following is not the right implementation, https://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/datastructures/lists/SinglyLinkedList.java /** Swaps no... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NewPZP |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba296ecd3a3521238fe43b3b3b08cc09207ddc21173e16ee656db03803de8e2b |
| turbo-cache-control | no-preview |
| go-import | github.com/TheAlgorithms/Java git https://github.com/TheAlgorithms/Java.git |
| octolytics-dimension-user_id | 20487725 |
| octolytics-dimension-user_login | TheAlgorithms |
| octolytics-dimension-repository_id | 63477660 |
| octolytics-dimension-repository_nwo | TheAlgorithms/Java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 63477660 |
| octolytics-dimension-repository_network_root_nwo | TheAlgorithms/Java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6e50fb37e29e4aa0df6386cb485e58b0e3ca97ab |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width