set in python | Lec-17

In this video, I have talked about the fundamentals of programming and Python. If you complete this, you will be well-versed in using tuples for different use cases.
Directly connect with me at:- topmate.io/manish_kumar25
Discord channel:- / discord
For more queries reach out to me on my below social media handle.
Follow me on LinkedIn:- / manish-kumar-373b86176
Follow Me On Instagram:- / competitive_gyan1
Follow me on Facebook:- / manish12340
My Second Channel -- / @competitivegyan1
Interview series Playlist:- • Interview Questions an...
My Gear:-
Rode Mic:-- amzn.to/3RekC7a
Boya M1 Mic-- amzn.to/3uW0nnn
Wireless Mic:-- amzn.to/3TqLRhE
Tripod1 -- amzn.to/4avjyF4
Tripod2:-- amzn.to/46Y3QPu
camera1:-- amzn.to/3GIQlsE
camera2:-- amzn.to/46X190P
Pentab (Medium size):-- amzn.to/3RgMszQ (Recommended)
Pentab (Small size):-- amzn.to/3RpmIS0
Mobile:-- amzn.to/47Y8oa4 ( Aapko ye bilkul nahi lena hai)
Laptop -- amzn.to/3Ns5Okj
Mouse+keyboard combo -- amzn.to/3Ro6GYl
21-inch Monitor-- amzn.to/3TvCE7E
27-inch Monitor-- amzn.to/47QzXlA
iPad Pencil:-- amzn.to/4aiJxiG
iPad 9th Generation:-- amzn.to/470I11X
Boom Arm/Swing Arm:-- amzn.to/48eH2we
My PC Components:-
intel i7 Processor:-- amzn.to/47Svdfe
G.Skill RAM:-- amzn.to/47VFffI
Samsung SSD:-- amzn.to/3uVSE8W
WD Blue HDD:-- amzn.to/47Y91QY
RTX 3060Ti Graphic card:- amzn.to/3tdLDjn
Gigabyte Motherboard:-- amzn.to/3RFUTGl
O11 Dynamic Cabinet:-- amzn.to/4avkgSK
Liquid cooler:-- amzn.to/472S8mS
Antec Prizm FAN:-- amzn.to/48ey4Pj

Пікірлер: 11

  • @jigsparikh7961
    @jigsparikh79612 ай бұрын

    i always shyed away from python but because of you i started learning it. Thanks a million you are awesome.

  • @jigsparikh7961
    @jigsparikh79612 ай бұрын

    superb video thanks

  • @bolisettisaisatwik2198
    @bolisettisaisatwik21982 ай бұрын

    Big fan Manish Kumar :).

  • @user-yd1fu7hl6j
    @user-yd1fu7hl6j2 ай бұрын

    time complexity - o(n) becoz of only one loop , extra spacis used but in worst case maximum element can be appended then o(n) space complexity

  • @ShubhamKumar-cf9ih
    @ShubhamKumar-cf9ih2 ай бұрын

    Time and Space both will be O(n). As it has to traverse to each number and for storing the number also it has to add all till the match.

  • @anantkashyap1746
    @anantkashyap17462 ай бұрын

    Time complexity O(n) as it traverse using for loop and space complexity O(N) as it uses space to append the result

  • @raghavjuyalcomedyclub184
    @raghavjuyalcomedyclub184Ай бұрын

    time complexity is o(n^3) since to ( first loop o(n) x check element in list1 o(n) x check in list2 o(n) )

  • @safiadawood5637
    @safiadawood56372 ай бұрын

    # Q1 list1 = [1,2,3,4,5,6] list2 = [4,5,6,7,8] t1 = set(list1) t2 = set(list2) print(f"Missing values in list1 ={list(t2.difference(t1))}") print(f"Additional values in list2 = {list(t1.difference(t2))}") print(f"Missing values in list1 = {list (t1.difference(t2))}") print(f"Additional values in list2 ={list(t2.difference(t1))}") # Q2 ar1 = [1, 5, 10, 20, 40, 80] ar2 = [6, 7, 20, 80, 100] ar3 = [3, 4, 15, 20, 30, 70, 80, 120] common_items = set(ar1).intersection(set(ar2),set(ar3)) print(list(common_items)) Time complexity will be O(n) to convert to set, and O(n) to do the intersetion. So , final time complexity will be O(n) Space complexity will be O(n) too as each list will be stored as set.

  • @shoaibmalik1217
    @shoaibmalik12172 ай бұрын

    First comment

  • @PranshuHasani

    @PranshuHasani

    2 ай бұрын