Panda Guru LogoPanda
Guru

Can anyone help with this question thinking process...✍️

Round 1

Questions: We are initially given an integer number n.
Find the number of pairs (a,b) such that a*b is a perfect square.
1 <= a,b <= n

Example:
n = 4,
output: 6

Explanation: (1,1), (2,2), (3,3), (4,4), (1,4), (4,1)

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.