Arrays - Odd Even Subsequences
3:15
2 жыл бұрын
Amazing Substring - Python String
8:24
Deploy Flask in Cloud Run on GCP
13:05
Largest Triangle Area | Leetcode 812
2:18
Learn ML in 5 minutes
0:39
3 жыл бұрын
Пікірлер
@andresvillegas6193
@andresvillegas6193 2 күн бұрын
Very clear explanation, thanks
@sancarolsaab5628
@sancarolsaab5628 2 күн бұрын
You didn't explain what is the role of recursion with maxheapify in the code
@harishcreations6749
@harishcreations6749 3 күн бұрын
This quetion there is no values is equal to given int The output is. -1 -1
@marianabarros4398
@marianabarros4398 4 күн бұрын
Awesome
@sittieraizanonakan
@sittieraizanonakan 5 күн бұрын
may i ask...how do you get the #16?
@sunnyar1
@sunnyar1 8 күн бұрын
if(guest>K) statement should be outside the for loop
@Youtuber_2003
@Youtuber_2003 8 күн бұрын
a=[1,2,4,5,6,7] n=a[-1] s1=n*(n+1)//2 s2=sum(a) r=s1-s2 print(r)
@Youtuber_2003
@Youtuber_2003 8 күн бұрын
l1=['naina','kimi','sheena'] l2=[852345,763567,691276] d=dict(zip(l1,l2)) print(d)
@SnehalMohite-p7t
@SnehalMohite-p7t 10 күн бұрын
length = "Sneha Snehal" listsplit = length.split(" ") print(len(listsplit[-1]))
@SnehalMohite-p7t
@SnehalMohite-p7t 10 күн бұрын
maxdiff=[5,32,45,4,12,18,25] maxdiff.sort() print(maxdiff[-1]-maxdiff[-2])
@pushpakgaikwad1703
@pushpakgaikwad1703 14 күн бұрын
sentence="Sheena eating mango and apple. Her sister also loves eating apple and mango" sentences=sentence.split() print(sentences) for word in sentences: counts=sentence.count(word) print(f"Number of times ${word} appears:", counts)
@shobhit6183
@shobhit6183 21 күн бұрын
Or You can use below also def common_letters(): set1 = set(input("Enter your first string :- ")) set2 = set(input("Enter your second string :- ")) common = set1.intersection(set2) return list(common) common_letters()
@MALAYALIKKARAN
@MALAYALIKKARAN 26 күн бұрын
Interview night study for tomorrow
@rawat7203
@rawat7203 27 күн бұрын
def reverseString(string): return ' '.join((string.split(' ')[::-1]))
@mohammadkaif6442
@mohammadkaif6442 29 күн бұрын
2-1=2 how😅9:42
@diegovallarinonavar1
@diegovallarinonavar1 Ай бұрын
def find_common_letters(str1, str2): common_letters = set(str1) & set(str2) return list(common_letters) string1 = "NAINA" string2 = "REENE" common = find_common_letters(string1, string2) print("Common letters:", common)
@globalhistoryfacts
@globalhistoryfacts Ай бұрын
def count_words(): str1 = input('Enter the string') list_=str1.split() dic_={} for i in list_: if i in dic_: dic_[i]= dic_[i]+1 else: dic_[i]=1 print(dic_) count_words()
@gxldybubble
@gxldybubble Ай бұрын
Guys I might be cooked
@AdityaGupta-yx7tr
@AdityaGupta-yx7tr Ай бұрын
nice explanation especially where u showed the pattern 5:00
@MALAYALIKKARAN
@MALAYALIKKARAN Ай бұрын
Watching this video for tomorrows(12.10.24)interview at cochin for python developer
@somasundaram2809
@somasundaram2809 Ай бұрын
Whether you are selected or not
@AravTristy
@AravTristy Ай бұрын
at 6.43 what is x:x(i) ?
@debojitmandal8670
@debojitmandal8670 Ай бұрын
A = [40,50,60,80] B = [100,50,20,10] a=set(A) b=set(B) a.intersection(b)
@pujarameet9699
@pujarameet9699 Ай бұрын
I m pasting my external ip but the webpage is not loading
@MrigankGupta-m5z
@MrigankGupta-m5z Ай бұрын
matching_bracket = {')': '(', ']': '[', '}': '{'} stack = [] for char in expression: if char in matching_bracket.values(): stack.append(char) elif char in matching_bracket: if not stack or stack.pop() != matching_bracket[char]: return False return not stack
@debojitmandal8670
@debojitmandal8670 Ай бұрын
d={} for i in s: if i in d: d[i]=d[i]+1 else: d[i]=1 m=[ ] for k,v in d.items(): if v==1: m.append(k)
@dineshmishra6502
@dineshmishra6502 Ай бұрын
good
@debojitmandal8670
@debojitmandal8670 Ай бұрын
def max_sum(arr): curr_value = 0 max_value = arr[0] for i in range(len(arr)): curr_value += arr[i] # Always update max_value to track the highest sum so far max_value = max(max_value, curr_value) # Reset curr_value if it goes negative if curr_value < 0: curr_value = 0 return max_value
@KofiSaptonn
@KofiSaptonn 2 ай бұрын
Could you please recommend any free online course to help me improve in my programming skills?
@debojitmandal8670
@debojitmandal8670 2 ай бұрын
a=[1,1,2,2,3,3,4,4,5,5,6,6] b=[] for i in a: if i not in b: b.append(i) b
@245anilkumar9
@245anilkumar9 2 ай бұрын
word=input("enter the input:").upper() word2=input("enter the second word:").upper() for i in set(word): if i in set(word2): print(i)
@rhugvedsatardekar9229
@rhugvedsatardekar9229 2 ай бұрын
l = [1,2,4,5,6] for i in range(1,len(l)): if l[i]-1 not in l: print(f'{l[i]-1} is missing')
@debojitmandal8670
@debojitmandal8670 2 ай бұрын
now with inbuilt functions from itertools import combinations b=combinations(list,2) a=[ ] for i in b: print(i) z=abs(i[0]-i[1]) print(z) a.append(z)
@DHAMODHARANK15
@DHAMODHARANK15 2 ай бұрын
I got error that error is Node() takes no arguments... how to solve this err
@debojitmandal8670
@debojitmandal8670 2 ай бұрын
my approach is su=17 from itertools import combinations x=combinations(arr,2) l=[ ] for i in x: s=i[0]+i[1] if s ==su: l.append(s)
@touheedfathima8923
@touheedfathima8923 2 ай бұрын
def subarray_sum(arr,sum): dict1={} curr_sum=0 for i in range(len(arr)): curr_sum=curr_sum+arr[i] if curr_sum == sum: print("Subarray starts from 0 to ",i) return if curr_sum-sum in dict1: print("subarray starts from ",dict1[curr_sum-sum]+1,"to",i) return dict1[curr_sum]=i print("no subarray found") arr=[1,4,20,3,10,5] sum=33 subarray_sum(arr,sum)
@debojitmandal8670
@debojitmandal8670 2 ай бұрын
this method is incorrect bcs its ok for one missing value but if u have multiple missing values this will not work for eg l=[1,2,4,5,6,7,9,10,11,12,15,16] the total mssing numbers is 38 but the missing values are 3,8,13,14 @SrikanthDuvvala-iz5tv method is perfect
@Rohitchauhan-kg7sp
@Rohitchauhan-kg7sp 2 ай бұрын
Nice Explanation, Thank You!
@debojitmandal8670
@debojitmandal8670 2 ай бұрын
my question i we can use Counter from collections and do it so y r u complicating it
@nETSETOStECH
@nETSETOStECH 2 ай бұрын
If the interviewer asks not to use any inbuilt library, then to use this
@devmrnecro4215
@devmrnecro4215 2 ай бұрын
I did it like d={} L1=[<value>] L2=[<value>] for i in range(0, len(L1): d[L1[i]] = L2[i] print(d) simple
@nETSETOStECH
@nETSETOStECH 2 ай бұрын
👍
@sandeepthukral3018
@sandeepthukral3018 2 ай бұрын
initialize d
@devmrnecro4215
@devmrnecro4215 2 ай бұрын
@@sandeepthukral3018 common sense lagao bhai d lagana bhul gaya logic p dhyan do bas
@devmrnecro4215
@devmrnecro4215 2 ай бұрын
Dont make it this complicated just male a function def words(): s=input(“enter the string: ) w=s.split() d={} for i in w: if i not in d: d[i]=1 else: d[i]+=1 Simple to do
@henryeffiom7610
@henryeffiom7610 2 ай бұрын
But I want to deploy my project already built with vscode and phpmyadmin how can I go about it?
@freaky11100
@freaky11100 2 ай бұрын
samaj nhi aaya
@kjoeysspena2845
@kjoeysspena2845 2 ай бұрын
string_1 = "CJAMENOOO" string_2 = "Helloooo" def matching_letters_in_two_strings(string1, string2): matching_strings = [i for i in string1.lower() if i in string2.lower()] return(set(matching_strings))
@BhargaviYerrajodu
@BhargaviYerrajodu 2 ай бұрын
Thanks ❤
@vishwjoshi853
@vishwjoshi853 2 ай бұрын
s1 = set(list(input('Enter str1').lower())) s2 = set(list(input('Enter str2').lower())) common = list(s1.intersection(s2)) print(common)
@jatintilwani4604
@jatintilwani4604 2 ай бұрын
Another solution could be -- A=[5,7,4,3,9,8,19,21] target=12 dict1={} A.sort() for x in range(len(A)): for y in range(x+1,len(A)): if A[x]+A[y]==target: dict1[A[y]]=A[x] print(dict1)
@Basavaraj.Y.S
@Basavaraj.Y.S 2 ай бұрын
Please check this out, its more simple solution ip_list = [5,7,4,3,9,8,19,21] sum_value = 17 for i in ip_list: print(i) extra = sum_value - i if extra in ip_list: first_val = ip_list.index(i) second_val = ip_list.index(extra) print(first_val,second_val)