Title: BinaryTree method find() confusing return value · Issue #104 · TheAlgorithms/Java · GitHub
Open Graph Title: BinaryTree method find() confusing return value · Issue #104 · TheAlgorithms/Java
X Title: BinaryTree method find() confusing return value · Issue #104 · TheAlgorithms/Java
Description: The find(int key) method in the BinaryTree class returns the node with the value int, if it's found, and root if there is no such node. This is confusing behavior, first of all, as one would expect it to return null, and is also problema...
Open Graph Description: The find(int key) method in the BinaryTree class returns the node with the value int, if it's found, and root if there is no such node. This is confusing behavior, first of all, as one would expect...
X Description: The find(int key) method in the BinaryTree class returns the node with the value int, if it's found, and root if there is no such node. This is confusing behavior, first of all, as one would ex...
Opengraph URL: https://github.com/TheAlgorithms/Java/issues/104
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BinaryTree method find() confusing return value","articleBody":"The `find(int key)` method in the BinaryTree class returns the node with the value `int`, if it's found, and root if there is no such node. This is confusing behavior, first of all, as one would expect it to return null, and is also problematic, since the root itself can match the query. \r\n\r\nI suggest simply changing this function to return null on an unsuccessful query.","author":{"url":"https://github.com/mpokryva","@type":"Person","name":"mpokryva"},"datePublished":"2017-09-28T22:45:35Z","url":"https://github.com/TheAlgorithms/Java/issues/104"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:a28921e3-e30b-55d4-8711-e992f0b22222 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD74:296654:2F6A5A5:3F37FB1:6B01E02D |
| html-safe-nonce | b4800ebe3a80a06d34591036a64f2fee12d1671a4ec143eb7bf32debcf0c039c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDc0OjI5NjY1NDoyRjZBNUE1OjNGMzdGQjE6NkIwMUUwMkQiLCJ2aXNpdG9yX2lkIjoiMjE4NDk4NDUyMTA4NTE0OTIyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 05c9ce6c38e924c14e1d273eaddbaeadfb0e765c80c617255b69d01ad846f064 |
| hovercard-subject-tag | issue:261483571 |
| 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/104/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab330bc56a28259e079dd00ed6c1e067ee3eb7c8eeeaf969e79cc94247b56c27/TheAlgorithms/Java/issues/104 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab330bc56a28259e079dd00ed6c1e067ee3eb7c8eeeaf969e79cc94247b56c27/TheAlgorithms/Java/issues/104 |
| og:image:alt | The find(int key) method in the BinaryTree class returns the node with the value int, if it's found, and root if there is no such node. This is confusing behavior, first of all, as one would expect... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mpokryva |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width