Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Approach: we need to calculate the forward route list + return route list 2nd point and we will find the maximum of the list after that I will compare the forward route list and +return list if they are equal then I will push in 1 D vector then I will push 2nd vector in answer and finally we will return 2D vector answer
Complexity Analysis:
time complexity O(N*M)
N is the size of the forward route list and return route list
space complexity O(N*M)
and here N and M is the size of our 2D vector answer
Complexity Analysis:
time complexity O(N*M)
N is the size of the forward route list and return route list
space complexity O(N*M)
and here N and M is the size of our 2D vector answer
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
'''
Find K Closest Points to the Origin
Approach: The idea is to calculate the Euclidean distance from the origin for every given point and sort the array according to the Euclidean distance found. Print the first k closest points from the list.
Algorithm :
Consider two points with coordinates as (x1, y1) and (x2, y2) respectively. The Euclidean distance between these two points will be:
โ{(x2-x1)2 + (y2-y1)2}
Sort the points by distance using the Euclidean distance formula.
Select first K points form the list
Print the points obtained in any order.
Complexity Analysis:
Time Complexity: O(n log n).
Time complexity to find the distance from the origin for every point is O(n) and to sort the array is O(n log n)
Space Complexity: O(n).
As we are making an array to store distance from the origin for each point.
'''
def deliveryPlan(allLocation, NumDeliveries):
allLocation.sort(key = lambda NumDeliveries: NumDeliveries[0]2 + NumDeliveries[1]2)
return allLocation[:NumDeliveries]
Amazon โ
Find K Closest Points to the Origin
Approach: The idea is to calculate the Euclidean distance from the origin for every given point and sort the array according to the Euclidean distance found. Print the first k closest points from the list.
Algorithm :
Consider two points with coordinates as (x1, y1) and (x2, y2) respectively. The Euclidean distance between these two points will be:
โ{(x2-x1)2 + (y2-y1)2}
Sort the points by distance using the Euclidean distance formula.
Select first K points form the list
Print the points obtained in any order.
Complexity Analysis:
Time Complexity: O(n log n).
Time complexity to find the distance from the origin for every point is O(n) and to sort the array is O(n log n)
Space Complexity: O(n).
As we are making an array to store distance from the origin for each point.
'''
def deliveryPlan(allLocation, NumDeliveries):
allLocation.sort(key = lambda NumDeliveries: NumDeliveries[0]2 + NumDeliveries[1]2)
return allLocation[:NumDeliveries]
Amazon โ
Revature (Python 3)โ
Revature (Python 3)โ
First line chnage
n=int(input())
Revature (Python 3)โ
n=int(input())
Revature (Python 3)โ
OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ
Hexaview is hiring for below roles (There is a bond of 2 years) โ
Only first 100 resumes will entertain. โ
Please see below the details : On-Job Training Duration - 6 months Stipend - 20,000 INR for Application Engineer and Member of Technical Staff โฆ
The one who all are shortlisted got the mail for exam.
We again open the same form at night 8PM.
๐๐Note: If you don't have any coding background, this will not able to help you because they are selecting based on coding profile.
Be ready at 8PMโค๏ธโ
We again open the same form at night 8PM.
๐๐Note: If you don't have any coding background, this will not able to help you because they are selecting based on coding profile.
Be ready at 8PMโค๏ธโ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
The one who all are shortlisted got the mail for exam. We again open the same form at night 8PM. ๐๐Note: If you don't have any coding background, this will not able to help you because they are selecting based on coding profile. Be ready at 8PMโค๏ธโ
Here is the link: https://forms.gle/qdHMXLX7PvFDewbY8
Note: Make sure you have good coding background, otherwise recruiter will not select๐ข
Note: Make sure you have good coding background, otherwise recruiter will not select๐ข
๐ฑ1
Process/agile 8:30pm Slot
1q) guding principles
All the above
2q)the screum team
There is more
3q)incident is handling
Unplanned
4q)due to failed
Ensuring that
C.
Q5) risk management
Capacity
B
Q6) it has been decided
Feature based teams
Q7) sprint longer
D
All the above
Q8) awared an mangement
Costmer face should faced
D
Q9) the estimation method
A
Planning poker
Q10) in the middle of
D
Invlove the product
1q) guding principles
All the above
2q)the screum team
There is more
3q)incident is handling
Unplanned
4q)due to failed
Ensuring that
C.
Q5) risk management
Capacity
B
Q6) it has been decided
Feature based teams
Q7) sprint longer
D
All the above
Q8) awared an mangement
Costmer face should faced
D
Q9) the estimation method
A
Planning poker
Q10) in the middle of
D
Invlove the product
โข Eval :
โข Result :
# pattern program
def fun(n):
for i in range(1, 1+n):
s = [_+1 for _ in range(i)]
s += [_ for _ in range(i-1, 0, -1)]
print(' '*(n-i), *s, sep='')
for i in range(n-1, 0, -1):
s = [_+1 for _ in range(i)]
s += [_ for _ in range(i-1, 0, -1)]
print(' '*(n-i), *s, sep='')
fun(3)
โข Result :
1
121
12321
121
1
Those who recently got placed write your interview experience here, so that it will help everyone ๐โค๏ธ
https://bit.ly/39gvyQ4
https://bit.ly/39gvyQ4
Infosys interview Experience โ
Civil branch (2022)
Interview date 10/06/22
Interview slot - 2:40 to 2:59 but my interview started on 2:27
I'd proof
Intro
Sdlc
Sdlc modules
Java & C difference
Oops concepts
Operating system
Why civil to it
Why Infosys
Why u choose civil when u r interested in it
Ur graduation completed or u pursuing
Do you know about coding
Do you have laptop
About project
Technology use in it industry
AI , ML ,
Do you have any questions for me
Civil branch (2022)
Interview date 10/06/22
Interview slot - 2:40 to 2:59 but my interview started on 2:27
I'd proof
Intro
Sdlc
Sdlc modules
Java & C difference
Oops concepts
Operating system
Why civil to it
Why Infosys
Why u choose civil when u r interested in it
Ur graduation completed or u pursuing
Do you know about coding
Do you have laptop
About project
Technology use in it industry
AI , ML ,
Do you have any questions for me
๐2