↳
They were really looking into overall adequacy and understanding of your field. The vast majority of questions were about your recent work experience, eg a moment when you could overcome a difficult situation. There were a couple of very simple questions regarding sorting and string operations in a shared editor too. Minder
↳
thanks. that's helpful. is that the final round of interviews or are you expecting further rounds of evaluation? Minder
↳
I think, there are two more to follow. They do really have a complicated hiring process. Minder
↳
num = int(input()) for i in range(num): for j in range(num): print(" ",end=" ") for j in range(num-i): print(" ",end="") for j in range(i+1): print("*",end=" ") print() for i in range(num,0,-1): for j in range(num-i+1): print(" ",end="") for j in range(i): print("*",end=" ") print() Minder
↳
with less loops n=int(input()) print(n*"@") for i in range(1,n+2): for j in range(i): print("*",end="") print("") for i in range(n,0,-1): for j in range(i): print("*",end="") print("") print(n*"@") Minder
↳
n=int(input()) right=n-1 spaces=4*n-right-2 for i in range(1,n+1): print(spaces*' ',end='') print(i*"* ",end='') print(right*" ") spaces-=1 right-=1 spaces,right=0,0 for i in range(n,0,-1): print(spaces*' ',end='') print(i*"* ",end='') print(right*" ") spaces+=1 right+=1 Minder
↳
I bet you come from C++? return [x for x in li if li.count(x) == 1]
↳
There's actually an even simpler solution: return set(li)
↳
A=['a', 'b,' a'] Set(a) ['a', 'b']
↳
I was only able to do this : * * * @ * * * @ * * @ * @ Minder
↳
Please elaborate your question.. How question pattern looks like. It's seems in single line and you printed in multiple lines... thank-you Minder
↳
n = int(input("num")) print("* " ) print("* ", end="") print("* ", end="") print("@ ", end="") print("\n") for i in range(n-2, 0, -1): m = n-1-i for j in range(i): print("* " , end="") print("@ ", end="") for k in range(m): print("* ",end="") print("\n") print(" ", end="") print(" ", end="") print("@ ", end="") print("* ", end="") print("* ") for m in range(5): if m<4: print(" ", end="") else: print("* ") Minder
↳
What were the questions about in the online test and face to face round
↳
Face to face they ask related to DS al
↳
do you remember questions asked in online hackerrank test
↳
max([functools.reduce(operator.mul, data[i-4:i]) for i in data if i > 3])
↳
max([functools.reduce(operator.mul, data[i-4:i]) for (i, e) in enumerate(data) if e > 3]) Minder
↳
def largest_2str_multipler(a): l = len(a) m = int(a[0])*int(a[1]) for x in range(1,l-1): if m < int(a[x])*int(a[x+1]): m = int(a[x])*int(a[x+1]) return m Minder
↳
what was the question in your Hackathon round?
↳
Share the questions of hackathon round plz
↳
It will. Be great help if someone can update here questions of Hackathon Or round 3 . Thanks! Minder
↳
1.) I said hard to tell because that is a very vague question. 2.) Use grep and awk and wc. 3.) Use the above plus "bc" to calculate percentage. Minder
↳
for: 2.) Use grep and awk and wc. I believe grep + uniq + wc would be better and simpler, right? Minder
↳
for: 2.) Use grep and awk and wc. 'grep -c' is enough
↳
def rem_dupe(input_list): x = set(input_list) return [y for y in x]
↳
def remove_duplicates(arr): return list(dict.fromkeys(arr).keys())
↳
def remove_duplicate(l): ...: res = [] ...: n = len(l) ...: if n < 2: ...: return l ...: for i in range(1,n): ...: if l[i-1] != l[i]: ...: res.append(l[i-1]) ...: res.append(l[-1]) ...: return res Minder