




# Algorithm for the pigeonhole sorting



def 					UpperCAmelCase_							(      __UpperCAmelCase						:	Any							)					-> str:
      SCREAMING_SNAKE_CASE_							=			min(__UpperCAmelCase							)  # min() finds the minimum value
      SCREAMING_SNAKE_CASE_							=			max(__UpperCAmelCase							)  # max() finds the maximum value

      SCREAMING_SNAKE_CASE_							=			max_val - min_val + 1  # size is difference of max and min values plus one

      # list of pigeonholes of size equal to the variable size
      SCREAMING_SNAKE_CASE_							=			[0] * size

      # Populate the pigeonholes.
      for x in a:
            assert isinstance(__UpperCAmelCase			,			__UpperCAmelCase							), "integers only please"
            holes[x - min_val] += 1

      # Putting the elements back into the array in an order.
      SCREAMING_SNAKE_CASE_							=			0
      for count in range(__UpperCAmelCase							):
            while holes[count] > 0:
                  holes[count] -= 1
                  SCREAMING_SNAKE_CASE_							=			count + min_val
                  i += 1

def 					UpperCAmelCase_							(      )					-> List[Any]:
      SCREAMING_SNAKE_CASE_							=			[8, 3, 2, 7, 4, 6, 8]
      pigeonhole_sort(__UpperCAmelCase							)
      print('Sorted order is:'			,			' '.join(__UpperCAmelCase							)							)


if __name__ == "__main__":
   main()





import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
   print('Googling.....')
   lowerCamelCase__ :   List[Any]					=							'https://www.google.com/search?q=' + ' '.join(sys.argv[1:])
   lowerCamelCase__ :   List[Any]					=							requests.get(url, headers={'UserAgent': UserAgent().random})
   # res.raise_for_status()
   with open('project1a.html', 'wb') as out_file:  # only for knowing the class
      for data in res.iter_content(10_000):
         out_file.write(data)
   lowerCamelCase__ :   int					=							BeautifulSoup(res.text, 'html.parser')
   lowerCamelCase__ :   List[str]					=							list(soup.select('.eZt8xd'))[:5]

   print(len(links))
   for link in links:
      if link.text == "Maps":
         webbrowser.open(link.get('href'))
      else:
         webbrowser.open(f'''https://google.com{link.get('href')}''')