Hi everyone, if you are preparing for Data Engineer Interviews then do checkout the below playlist. In that I have covered important PySpark concepts and their coding questions th-cam.com/video/YUnZKKao3Sg/w-d-xo.html
Thanks for sharing and please continue making such videos along with complete roadmap and resources you followed. Just one correction in decorators : first add will get executed ==> value will become 7 and then main will be executed value will become 7-2=5. You can validate this by this code ; def fun1(fu): def inner(n): print("inner") return fu(n+2) return inner @fun1 def fun(n): print("main") return n-2 print(fun(5))
Follow my TH-cam channel for the SQL Pyspark DSA in python Oops in python Pandas scenarios based interview questions and answers preparation: youtube.com/@dewithdhairy
def normalize(input): result = [] for item in input: if isinstance(item,list): result.extend(normalize(item)) else: result.append(item) return result input = [1,[2,[3,4],5,[6,7,8]]] print(normalize(input))
Same but a bit easier to understand solution if you are vary of recursion concept def helper(result, arr): res = [] for item in arr: if isinstance(item, list): helper(res, item) else: res.append(item) result += res return result def normalize_depth(x): return helper([], x) input_arr = [1, 2, [3, 4, [5, 6, [7, 8, [10, 11], [13, 17]], [14, 18]], 15], 16] print(normalize_depth(input_arr))
Cloud tools : They ask only if u have mentioned in your resume. DSA: string, list, tuples, linkedlist, stack and queue u should prepare just in case although mostly string and list they ask
@@rishabhchoubey3569 yeah this can happen, your current CTC might be less. Walmart offers quite less compared to other product base. Ask them for 20 LPA base and that you will not counter. Meanwhile keep looking for other companies that can offer you more.
Hi everyone, if you are preparing for Data Engineer Interviews then do checkout the below playlist. In that I have covered important PySpark concepts and their coding questions
th-cam.com/video/YUnZKKao3Sg/w-d-xo.html
def flat(l):
for i in l:
if type(i)==list:
flat(i)
else:
re.append(i)
You explain well but please don't put music in background its distributing if possible please make video without background music
Coding Ques 2 will fail in one case where target value is 10 and in the list two times 5 are there. Remain in X and remain not is used will fail.
@@ShivamSrivastava-e5n can you please post the ans that passes all the test cases. thanks in advance
Thanks for sharing and please continue making such videos along with complete roadmap and resources you followed.
Just one correction in decorators : first add will get executed ==> value will become 7 and then main will be executed value will become 7-2=5.
You can validate this by this code ;
def fun1(fu):
def inner(n):
print("inner")
return fu(n+2)
return inner
@fun1
def fun(n):
print("main")
return n-2
print(fun(5))
Thanks, will surely keep making these videos
Reminder for myself to look at this video
Thanks for this content Sarthak!
Glad you liked it!
7:42 bro output will be - b Danny
9:32 it dense rank should be used, not row number
Thanks for sharing such a detailed video. Very useful for formualting a study plan.
Glad it was helpful! 😀
def flatten_list(nested_list):
flattened = []
for item in nested_list:
if isinstance(item, list):
flattened.extend(flatten_list(item))
else:
flattened.append(item)
return flattened
# Example nested list
lt = [1, [2, 3, [4, 5, 6, [7, 8, 9]]]]
# Flatten the list
flattened_list = flatten_list(lt)
print(flattened_list)
Thank you bhai more making this video
Happy to help 🙂
Convert the list into a string and just replace every [, ] with empty string("") and than convert the string to list
Thanks for sharing!
Thanks for watching!
Follow my TH-cam channel for the SQL Pyspark DSA in python Oops in python Pandas scenarios based interview questions and answers preparation:
youtube.com/@dewithdhairy
YOu have a list of list to depth n. write a program to normalise it:
list(eval(str(b).replace(']','').replace('[','')))
def normalize(input):
result = []
for item in input:
if isinstance(item,list):
result.extend(normalize(item))
else:
result.append(item)
return result
input = [1,[2,[3,4],5,[6,7,8]]]
print(normalize(input))
Thanks for adding the solution 🙂....really helpful 😃
Same but a bit easier to understand solution if you are vary of recursion concept
def helper(result, arr):
res = []
for item in arr:
if isinstance(item, list):
helper(res, item)
else:
res.append(item)
result += res
return result
def normalize_depth(x):
return helper([], x)
input_arr = [1, 2, [3, 4, [5, 6, [7, 8, [10, 11], [13, 17]], [14, 18]], 15], 16]
print(normalize_depth(input_arr))
Thanks for detailed explaination!
Refferel 😂???
Sure, reach out to me on LinkedIn
Nested loops is important in data engineering?
Yes absolutely. For DSA go with medium level questions in string and list
I watched ur videos.its very helpful. Do they ask on any cloud like azure or aws or any other data structures like stack queues or trees
Cloud tools : They ask only if u have mentioned in your resume.
DSA: string, list, tuples, linkedlist, stack and queue u should prepare just in case although mostly string and list they ask
@@SarthakDasgupta-bp8xithanks.
do they ask to write the code in some compiler or in notepad
what base pay we can expect for 3-3.5 yrs ?
@@rishabhchoubey3569 19-20 base pay. But if your interview went well and also you have counter offer then you can go upto 25 as well
@@SarthakDasgupta-bp8xi I m getting low balled base they offering is 13.5 as I'm moving from service base company, what u suggest?
@@rishabhchoubey3569 yeah this can happen, your current CTC might be less. Walmart offers quite less compared to other product base. Ask them for 20 LPA base and that you will not counter. Meanwhile keep looking for other companies that can offer you more.
I want one on one session with you
Does referral helps in getting shortlisted ?
Referrals are the best way of getting shortlisted in my experience. You get preference when you are referred
Can u share your sample resume
Sure you may checkout my LinkedIn for this
Don’t put an English title if you’re not gonna talk in English in the video
Done 👍. Checkout my latest videos 😁. Hope you find what you expected.
Thanks for the video bro. what happens if a candidate doesn't know about the java??
Nothing really although you should know atleast one language mentioned in the JD and you should be well versed with OOP
after watching your video here I am really interested in data science now. Can you accept my request in Linkedn