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: patch-diff.githubusercontent.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:d72aa6cf-94b1-d3b9-3547-0256af4ebad4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84DE:3DA736:286716A:35A1606:696F0841 |
| html-safe-nonce | ac2da43da7f4fc05d07d1afb5dedbb6c539eb493815d7d36d2e1efc6f6e6e6c9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NERFOjNEQTczNjoyODY3MTZBOjM1QTE2MDY6Njk2RjA4NDEiLCJ2aXNpdG9yX2lkIjoiMjU1OTM2MDA0ODQwMzc3NzYwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5711b94a73e4b98f6174ab5e8c2a8ccfa9e20d2f5d852df6c3bf7de087212cd7 |
| 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 | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| 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 | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width