NLP301c_-_PE1_-_SP_2024_1904.webp
HoangPhuc87

NLP301c_-_PE1_-_SP_2024_1904.webp

['[email protected]']
Question 4: (3 marks)
Write a function that takes a list of words (containing duplicates) and returns a list of words (with no duplicates) sorted by ascending frequency.
Input:
['table', 'table', 'table', 'table', 'table', 'table', 'table', 'table', 'table', 'table', 'chair', 'chair', 'chair','chair', 'chair', 'chair', 'chair', 'chair', 'chair']
Output:
['chair', 'table']
Zoom
+ 100%
Close

Chưa có bình luận nào.

Thông tin

Category
NLP301c
Thêm bởi
HoangPhuc87
Ngày thêm
Lượt xem
1,013
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
NLP301c_-_PE1_-_SP_2024_1904.webp
File size
116.3 KB
Dimensions
1920px x 748px

Share this media

Back
Bên trên Bottom