Skip to content

Commit

Permalink
feat: add list operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuanhong-Lan committed Dec 21, 2024
1 parent 9166541 commit d8ff541
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ordinary/list_operation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ----------------------
# @Time : 2024 Dec
# @Author: Yuanhong Lan
# ----------------------
class ListOperation:
@classmethod
def non_repetition_list_subtract(cls, list1, list2):
return list(set(list1) - set(list2))

0 comments on commit d8ff541

Please sign in to comment.