Given an array of distinct positive numbers, the task is to calculate the number of subsets (or subsequences) from the array such that each subset contains consecutive numbers

截圖 2021-05-08 下午4.19.42.jpg

Take two lists and write a program that returns a list that contains only the elements that are common between these two lists (without duplicates). Make sure your program works on two lists of different sizes

截圖 2021-05-08 下午4.19.58.jpg

創作者介紹
創作者 Terror-P的部落格 的頭像
Terror-P

Terror-P的部落格

Terror-P 發表在 痞客邦 留言(0) 人氣( 5 )