Questions - algorithm