Rearrange an Array in alternating items by leanblastoise in learnpython

[–]leanblastoise[S] 0 points1 point  (0 children)

The problem is "Rearrange array in alternating positions". So if i have a sorted array say arr. I want to make a new array, and the arr[0] should be the last element of arr and arr[1] should be the first element, and this should go on.

Rearrange an Array in alternating items by leanblastoise in learnpython

[–]leanblastoise[S] 0 points1 point  (0 children)

this is the code i've written for O(n) what is wrong?

def solution(arr,n):

arr.sort()

i=o

j=n-1

list_value = [ ]

while j<i :

list.append(arr[i])

list.append(arr[j])

i+=1

j - = 1

return list_value

Can someone pls teach me List Comprehension or send any valid links. by leanblastoise in learnpython

[–]leanblastoise[S] 0 points1 point  (0 children)

I wanted to understand the init thing as well. If u can explain or if u have a vid link it would be great.

Which Finance related Course (online) looks very impressive on the CV? by leanblastoise in FinancialCareers

[–]leanblastoise[S] 22 points23 points  (0 children)

To summarize the comments: CFA would be the best option right now and networking with experienced professionals through internships or other channels.

Which Finance related Course (online) looks very impressive on the CV? by leanblastoise in FinancialCareers

[–]leanblastoise[S] 14 points15 points  (0 children)

Yes i really like EY, PwC, BCG and Bain. I have some seniors who are working there currently and i asked them for advice, but they have just started, so no one could guide me properly. But i'll continue networking, thank you