Combinations with sum

To find all the possible combination for a given sector in a killer sudoku or in a “between 1 and 9” sudoku.

Find all combinations for a between 1 and 9 that sums to 18 with 3 cells

from itertools import combinations
print [c for c in combinations([2,3,4,5,6,7,8], 3) if sum(c) == 18]

Find all combinations in a killer for a sum of 22 in 3 cells

from itertools import combinations
print [c for c in combinations([1,2,3,4,5,6,7,8,9], 3) if sum(c) == 22]

Introduction

Clone the source code

cd dev
git clone https://github.com/angular-university/angular-ngrx-course.git
cd angular-ngrx-course/

The material for the lessons is available in different branches (git branch -a)

  • 1-auth
  • 1-auth-finished
  • 2-entity
  • 2-entity-finished
  • 3-lessons
  • 3-lessons-finished

Select the appropriate branch

git checkout -b 1-auth origin/1-auth

Install the dependencies and start the local express server

npm install
npm run server

Then in a new console

npm start

Finally open Chrome and navigate to http://localhost:4200/

Resume

Resume is a firestore entity linked to a storage file

  • Resume model
  • Resume service
  • Resume component
  • Resumes storage upload