Skip to content
Pooja Bhatia Classes Hari Nagar
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
Pooja Bhatia Classes Hari Nagar

sa 12 cs chapter 6

5. A list namely Adm stores admission numbers of 100 students in it, sorted in ascending order of admission numbers. Write a program that takes an admission number and looks for it in list Adm using binary search technique. The binary search function should use recursion in it.

sa 12 cs chapter 6 / PythonCSIP CS IP

def adm_search(arr, x, f=0, l=10): if l >= f: mid = (f+l)//2 if arr[mid] == x: # Found return mid elif arr[mid] > x: return adm_search(arr, x, f, mid-1) # search below else: return adm_search(arr, x, mid+1, l) # search above else: return ‘Not Found’ # adm list can be of any number adm = […]

5. A list namely Adm stores admission numbers of 100 students in it, sorted in ascending order of admission numbers. Write a program that takes an admission number and looks for it in list Adm using binary search technique. The binary search function should use recursion in it. Read More »

8. Consider the following Python function Fn (), that takes an integer n parameter and works recursively as follows :

sa 12 cs chapter 6 / PythonCSIP CS IP

8. Consider the following Python function Fn (), that takes an integer n parameter and works recursively as follows : Read More »

Post pagination
← Previous 1 … 7 8 9 … 21 Next →
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
  • We teach following classes
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship

Copyright © 2025 Pooja Bhatia Classes Hari Nagar | Powered by Pooja Bhatia Classes Hari Nagar.