Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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 24 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
```
Morty Proxy This is a proxified and sanitized view of the page, visit original site.