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: redirect.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:63cfc106-609a-2149-d526-0feaf6af369c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0DC:C2480:23E8929:3151565:696AC622 |
| html-safe-nonce | 396e71c57daa9e16d5f60f57fe7232c7e44fc0c51fb8c7a64b88c5c79548e9f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMERDOkMyNDgwOjIzRTg5Mjk6MzE1MTU2NTo2OTZBQzYyMiIsInZpc2l0b3JfaWQiOiI2NjkxMzM4MTM3MjkzNzM1NDU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3b172ec3ef5e0b3dcfd44304243c3840f9f30a963b9670882efb36470213d6d7 |
| 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 | 986b6a1d774985095564e64d6963d11f094da3d0e2bfda2ab1a27d63662eb033 |
| 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 | 89ad2112b9c4e11df6a0c13c8c1f8eedd36b0977 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width