Title: Find index | Practice | GeeksforGeeks
Open Graph Title: Find index | Practice | GeeksforGeeks
X Title: Find index | Practice | GeeksforGeeks
Description: Given a tuple arr with distinct elements and an integer x, find the index position of x. Assume to have x in the tuple always. Print the index (0-based). Examples: Input: arr = (1, 2, 3, 4, 5), x = 3 Output: 2 Input: arr = (3, 2, 1, 5, 4), x = 5
Open Graph Description: Given a tuple arr with distinct elements and an integer x, find the index position of x. Assume to have x in the tuple always. Print the index (0-based). Examples: Input: arr = (1, 2, 3, 4, 5), x = 3 Output: 2 Input: arr = (3, 2, 1, 5, 4), x = 5
X Description: Given a tuple arr with distinct elements and an integer x, find the index position of x. Assume to have x in the tuple always. Print the index (0-based). Examples: Input: arr = (1, 2, 3, 4, 5), x = 3 Output: 2 Input: arr = (3, 2, 1, 5, 4), x = 5
Keywords:
Domain: www.geeksforgeeks.org
{"@context":"http://schema.org","@type":"Organization","name":"GeeksforGeeks","url":"https://www.geeksforgeeks.org/","logo":"https://media.geeksforgeeks.org/wp-content/cdn-uploads/20200817185016/gfg_complete_logo_2x-min.png","description":"A computer science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.","founder":[{"@type":"Person","name":"Sandeep Jain","url":"https://in.linkedin.com/in/sandeep-jain-b3940815"}],"sameAs":["https://www.facebook.com/geeksforgeeks.org/","https://twitter.com/geeksforgeeks","https://www.linkedin.com/company/1299009","https://www.youtube.com/geeksforgeeksvideos/"]}
| None | text/html;charset=UTF-8 |
| og:image | https://media.geeksforgeeks.org/wp-content/cdn-uploads/gfg_200x200-min.png |
| og:image:alt | GeeksforGeeks |
| og:image:type | image/png |
| og:image:width | 200 |
| og:image:height | 200 |
| twitter:card | summary_large_image |
| twitter:image | https://media.geeksforgeeks.org/wp-content/cdn-uploads/gfg_200x200-min.png |
| next-head-count | 20 |
Links:
| https://www.geeksforgeeks.org/ |
Viewport: width=device-width, initial-scale=1, user-scalable=yes