Question: what is difference between method and algorithm?
Answer: In computer science an algorithm still is a step-by-step manner towards solving a problem - an implementation-agnostic set of steps. A method commonly refers to a chunk of code associated with a class or object that does some task - it can implement many algorithms potentially.