Title: 3_odd_even_numbers.py code is not optimised · Issue #75 · codebasics/data-structures-algorithms-python · GitHub
Open Graph Title: 3_odd_even_numbers.py code is not optimised · Issue #75 · codebasics/data-structures-algorithms-python
X Title: 3_odd_even_numbers.py code is not optimised · Issue #75 · codebasics/data-structures-algorithms-python
Description: max = int(input("Enter max number: ")) odd_numbers = [] for i in range(1, max): if i % 2 == 1: odd_numbers.append(i) print("Odd numbers: ", odd_numbers) The loop is Executed 0(n) times we can reduce as 0(n/2)
Open Graph Description: max = int(input("Enter max number: ")) odd_numbers = [] for i in range(1, max): if i % 2 == 1: odd_numbers.append(i) print("Odd numbers: ", odd_numbers) The loop is Executed 0(n) times we can reduc...
X Description: max = int(input("Enter max number: ")) odd_numbers = [] for i in range(1, max): if i % 2 == 1: odd_numbers.append(i) print("Odd numbers: ", odd_numbers) The loop is Executed 0(n...
Opengraph URL: https://github.com/codebasics/data-structures-algorithms-python/issues/75
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"3_odd_even_numbers.py code is not optimised ","articleBody":"max = int(input(\"Enter max number: \"))\r\n\r\nodd_numbers = []\r\n\r\nfor i in range(1, max):\r\n if i % 2 == 1:\r\n odd_numbers.append(i)\r\n\r\nprint(\"Odd numbers: \", odd_numbers)\r\n\r\nThe loop is Executed 0(n) times we can reduce as 0(n/2)","author":{"url":"https://github.com/Aribaskar-jb","@type":"Person","name":"Aribaskar-jb"},"datePublished":"2023-05-16T12:34:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/75/data-structures-algorithms-python/issues/75"}
| 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:49443650-1a61-e24c-4a05-4852715da365 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C400:3B507F:272FE5A:355D4AF:696ADA5F |
| html-safe-nonce | 7f05fc51f9d9075613788471913a690da12617dd5a09e61448a3b082247c0a81 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDAwOjNCNTA3RjoyNzJGRTVBOjM1NUQ0QUY6Njk2QURBNUYiLCJ2aXNpdG9yX2lkIjoiMzczNzkzNzAxMTg3MjAyOTI3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 58c6f40f8ee45545090fea871df09940985642f15896d1edb7d06f96ad13b917 |
| hovercard-subject-tag | issue:1711936331 |
| 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/codebasics/data-structures-algorithms-python/75/issue_layout |
| twitter:image | https://opengraph.githubassets.com/427c41ca4b726fab8348d053e89a14e0a5cd5366e690171758c59f990515cdf6/codebasics/data-structures-algorithms-python/issues/75 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/427c41ca4b726fab8348d053e89a14e0a5cd5366e690171758c59f990515cdf6/codebasics/data-structures-algorithms-python/issues/75 |
| og:image:alt | max = int(input("Enter max number: ")) odd_numbers = [] for i in range(1, max): if i % 2 == 1: odd_numbers.append(i) print("Odd numbers: ", odd_numbers) The loop is Executed 0(n) times we can reduc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Aribaskar-jb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/codebasics/data-structures-algorithms-python git https://github.com/codebasics/data-structures-algorithms-python.git |
| octolytics-dimension-user_id | 16063416 |
| octolytics-dimension-user_login | codebasics |
| octolytics-dimension-repository_id | 299539326 |
| octolytics-dimension-repository_nwo | codebasics/data-structures-algorithms-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 299539326 |
| octolytics-dimension-repository_network_root_nwo | codebasics/data-structures-algorithms-python |
| 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 | 524a93f2c1f36522a3b4be4c110467ee4172245d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width