Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Seminar 4/homework/problem4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Find common elements

Given a list of lists, print the common elements in all lists

The list string is preset in the program and not passed as input.

---
Sample input:
``` python
[[2, 17, 3, 4, 17], [2, 3, 1, 2], [82, 2, 4, 3, 20, 60 , 4, 4]]
```
Sample output:
```
2, 3
```
---
Sample input:
``` python
[['a', 'b', 'c'], ['b', 'c', 'd'], ['c', 'd', 'e']]
```
Sample output:
```
c
```