Project Description
Problem Solving with Python
One of the most exciting courses we offer. Using the theory and skills learned in Introductory Python a student can really combine programming and brain power. In this course we use all the programming we have learned to solve interview questions from some of the most prestigious technology firms in the country. Through various channels we have accumulated questions from Google, Facebook, Amazon and more. In this course the instructor leads the students to the solution of one question per week. The students are challenged but through this challenge the students learn to solve hard problems. In the process they learn alot about themselves.
This completion of Introductory Python is a requirement for this course.
This problem was recently asked by Google. Solve it programmatically.
Given a list of numbers and a number k
, return whether any two numbers from the list add up to k
.
For example, given [10, 15, 3, 7]
and k
of 17
, return true since 10 + 7
is 17
.
Bonus: Can you do this in one pass?