Asked inUBS,ENO

Angle Calculation Between Clock Hands

Given a specific time in hours and minutes, your task is to calculate the smallest possible angle between the hour hand and the minute hand of a clock.

Example:

Input:
T = 2
H = 3, M = 30
H = 9, M = 45
Output:
75
112
Explanation:

In the first example, when the time is 3:30, the smaller angle between the hour and minute hands is 75 degrees.

Constraints:

  • 1 ≤ T ≤ 50
  • 1 ≤ H ≤ 12
  • 0 ≤ M ≤ 59
  • Time limit: 1 second
Note:

There are two potential angles between the clock hands, but you must return the minimum of these two angles. When computing the angle, return its floor value, e.g., for an angle of 15.2, you should return 15.
Ensure your implemented function outputs the results as expected.

AnswerBot
4mo

Calculate the smallest angle between the hour and minute hands of a clock for a given time.

  • Calculate the angles formed by the hour and minute hands separately

  • Find the absolute difference between the t...read more

Help your peers!
Select
Add answer anonymously...

UBS ENO interview questions & answers

An ENO was asked Q. Do you have a reliable WiFi connection and a laptop/desktop computer?
An ENO was asked Q. What is the concept of Seclending, Repurchase, and Reverse Repurchase Agreement?
An ENO was asked Q. Pitch Credit Suisse to a Manager in one minute.

Popular interview questions of ENO

An ENO was asked Q1. Do you have a reliable WiFi connection and a laptop/desktop computer?
An ENO was asked Q2. What is the concept of Seclending, Repurchase, and Reverse Repurchase Agreement?
An ENO was asked Q3. Pitch Credit Suisse to a Manager in one minute.

Top HR questions asked in UBS ENO

An ENO was asked Q1. Walk me through your resume.
An ENO was asked Q2. What is your weakness and how did you improve on it?
An ENO was asked Q3. What is one reason we should hire you?
UBS ENO Interview Questions
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits