Recent Interview Questions
- 0of 0 votes
AnswersWhat is a memory leak? How to avoid it?
- hrpynux November 15, 2021 in India| Report Duplicate | Flag | PURGE
Pynux Soft Solutions .Net/C - 0of 0 votes
AnswersWhy n++ execute faster than n+1 ?
- hrpynux November 15, 2021 in India| Report Duplicate | Flag | PURGE
Pynux Soft Solutions .Net/C - 0of 0 votes
AnswersFinding Amsterdam Stock Exchange
- wanabeunknown November 08, 2021 in Netherlands
Ian and Sylvia are planning a visit to Amsterdam. They want to plan their sight seeing route. Sylvia is reading from the touristic guide and Ian is writing the list with sights.
Sylvia is giving Ian 2 commands:
- Add <sight> -> to add this sight on top of the visiting stack of sights to be planned for visit.
- Remove -> to move the sight on top of the visiting stack in their itinerary.
Ian wants to be able to also add, at the end of the day, a visit to the Amsterdam Stock Exchange Building, as it is the oldest modern exchange in the world, built in 1602.
To be able to do this, he wants to optimize the route that they are planning, without Sylvia's knowledge.
Whenever she is not watching, he can rearrange the stack of sights, so that, if Sylvia is asking to move the top sight to the itinerary, the itinerary list will still have the optimal path.
Tell Ian the minimum number of times he needs to reorder the sights so that he can achieve his goal.
Sights are numbered from 1 to n, in the order of the optimal path that Ian wants to take.
It is guaranteed that a sight will be added, before it is needed for the sight to be moved to the itinerary.
Clarifications Optimal path is the path from 1 n Amsterdam Stock Exchange is considered to be the sight with number n. You have a time limitation of 60 minutes.
Input :
The first line of input contains the integer n (1 <= n <= 10^6) — the number of sights to be planned Each of the next 2n lines of input starts with a string "add" or "remove".
If the line starts with the "add", an integer x (1 <= x <= n) follows, indicating that Ian should add the sight with number x to the top of the stack.
It is guaranteed that exactly n lines contain "add" operations, all the sights added are distinct, and n lines contain "move" operations.
It is also guaranteed that a sight is always added before it is required to be moved.
Output:
Print the minimum number of times Ian needs to reorder the sights to successfully achieve his goal.
Examples:
Input:
3
add 1
remove
add 2
add 3
remove
remove
Output:
should be 1.
Note In the first sample, Ian should reorder the sights after adding sight 3 to the stack.
Input:
7
add 3
add 2
add 1
remove
add 4
remove
remove
remove
add 6
add 7
add 5
remove
remove
remove
For this, output should be 2.
Note: In the second sample, Ian should reorder the sights after adding sight 4 and sight 7 to the stack.| Report Duplicate | Flag | PURGE
Flow Traders Software Engineer / Developer Algorithm - 0of 0 votes
AnswersDifferentiate between talent acquisition and recruitment?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Human Resource Executive - 0of 0 votes
Answers12) Should a HR be a decision maker or problem solver or both?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Human Resource Executive - 0of 0 votes
Answers11) Are you a decision maker or a problem solver?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Human Resource Executive - 0of 0 votes
Answers10) Should a HR be a diplomatic person or not?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Human Resource Executive - 0of 0 votes
Answers9) Are you a straight forward or a diplomatic person?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Human Resource Executive - 0of 0 votes
AnswersHow will you do to motivate your team?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Human Resource Executive - 0of 0 votes
AnswersWhat qualities you feel to have for becoming a recruiter?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Human Resource Executive - 0of 0 votes
AnswersWhy you want to become a recruiter?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Human Resource Executive - 0of 0 votes
AnswersIf you are recruiter on what aspect you select the candidate?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Human Resource Executive - 0of 0 votes
AnswersCan you differentiate between mission and vision?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Human Resource Executive - 0of 0 votes
AnswersCan you differentiate between leader and manager?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Human Resource Executive - 0of 0 votes
AnswersAccording to your what is recruitment?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Human Resource Executive - 0of 0 votes
AnswersIf in a certain language, NOIDA is coded as OPJEB, how is DELHI coded in that language?
- hr@sparkcloudtech.com November 08, 2021 in India
A) CDKGH B) EFMIJ C) FGNJK D) IHLED| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Software Developer - 0of 0 votes
Answers40) If you are a fitness walker, you don't need to go to a health gym. You also don't need any fitness equipment for workout. All you need is a pair of comfortable athletic shoes.
- hr@sparkcloudtech.com November 08, 2021 in India
This paragraph supports which of the following statements;
A) Fitness walking is better than weight lifting
B) Walking outdoors provides more health benefits than walking indoors
C) Fitness walking is an effective and convenient form of exercise
D) Poorly designed shoes can cause foot injuries| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Software Developer - 0of 0 votes
AnswersA 60 liter mixture of milk and water contains 10% water. How much water must be added to make water 20% in the mixture?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Talent Acquisition - 0of 0 votes
AnswersIf Suresh borrows Rs.36000 from Mahesh at rate of interest 6% S.I, at the end of four years how much interest Suresh has to pay along with principal amount?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Talent Acquisition - 0of 0 votes
AnswersA shopkeeper sold an article for Rs. 2500. If the cost price of the article is 2000, find the profit percent.
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Talent Acquisition - 0of 0 votes
Answers20) A pipe can fill a tank in 6 hours and another pipe can empty the tank in 12 hours. If both the pipes are opened at the same time,the tank can be filled in.
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Talent Acquisition - 0of 0 votes
AnswersTwo ships are sailing in the sea on the two sides of a lighthouse. The angles of elevation of the top of the lighthouse observed from the ships are 30° and 45° respectively. If the lighthouse is 100m high, find the distance between the two ships.
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Talent Acquisition - 0of 0 votes
AnswersWhat is the compound interest on Rs. 2500 for 2 years at rate of interest 4% per annum?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Talent Acquisition - 0of 0 votes
Answers12) Mohan gets a salary of Rs. 6435, Rs. 6927, Rs. 6855, Rs. 7230 and Rs. 6562 for 5 months. How much salary he must have in the sixth month so that he gets an average of Rs. 6500?
- hr@sparkcloudtech.com November 08, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Talent Acquisition - 0of 0 votes
AnswersA metro line was built to improve the quality of public transport. A particular station, X, ha parking lot. This parking lot is full and contains only white and blue coloured cars. These cars are arranged in a grid for maximum utilization of the parking area. For boarding the metro train, John takes a lift to the 3rd floor of the station.
- saitharung96 November 07, 2021 in United States
While waiting for the train, John takes a lookout of the glass wall and sees the parking are Out of excitement, he starts counting the number of blue patches in the parking lot.
Patch: Here, a patch is defined as an area with the same coloured cars.
If car A is at a position (a1, b1) and car B is at a position (a2, b2), then, they are in the sam patch if (la1-a2| + |b1-b2| = 1). Also, if car A and car B are in the same patch and car B and car C are in the same patch, then car A and car C are also in the same patch.| Report Duplicate | Flag | PURGE
- 0of 0 votes
AnswersThe true discount on a bill of Rs. 2700 is Rs. 200. What is the banker's discount?
- hr@sparkcloudtech.com November 07, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Talent Acquisition - 0of 0 votes
AnswersWhat is the probability of getting an even number when a dice is rolled?
- hr@sparkcloudtech.com November 07, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Talent Acquisition - 0of 0 votes
Answers29) In a kilometer race, A beats B by 40 meters or by 5 seconds. What is the time taken by A over the course?
- hr@sparkcloudtech.com November 07, 2021 in India| Report Duplicate | Flag | PURGE
Sparkcloud Technologies Talent Acquisition