mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-30 04:36:08 -04:00
Update sum_2_numbers_with_bs.py
This commit is contained in:
parent
092700f566
commit
24b38f0d5b
@ -1,8 +1,10 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# author: bt3gl
|
||||||
|
|
||||||
# given a collection of numbers, find the pair
|
# given a collection of numbers, find the pair
|
||||||
# of numbers that sum to a given number
|
# of numbers that sum to a given number
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def bs(array, desired_num):
|
def bs(array, desired_num):
|
||||||
|
|
||||||
start = 0
|
start = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user