To see if a number is divisible by 3, you need to add up the digits of its decimal notation, and check if the sum is divisible by 3. To see if a number is divisible by 11, you need to split its decimal notation into pairs of digits (starting from the right end), add up corresponding numbers and check if the sum is divisible by 11. For any prime p (except for 2 and 5) there exists an integer r such that a similar divisibility test exists: to check if a number is divisible by p, you need to split its decimal notation into r-tuples of digits (starting from the right end), add up these r-tuples and check whether their sum is divisible by p. Given a prime int p, find the minimal r for which such divisibility test is valid and output it. The input consists of a single integer p - a prime between 3 and 999983, inclusive, not equal to 5.
Intern Engineer Interview Questions
18,202 intern engineer interview questions shared by candidates
What is your favorite class? What do you think is your hardest class? Tell me about a time when you had a team conflict.
Explain to me how you built your last project?
Do you have any prior knowledge to PV systems?
Why do you think you’ll be successful in this role?
Google meet round. Total three questions: Q1) Separate out even and odd integers from a list Q2) Reverse the separated even integers from the given list. Q3) Given a list bring all the zeros to the end without changing the order of non-zero elements Using constant space and linear time.
How to use React with TypeScript. Familiarity with APIs
What is your experience with mobile development?
What is a piece of work you have done that you are most excited about, and talk about it.
Technical Interview 2 - Q2: Do you have plans to pursue higher education? Where do you see yourself in the next 5 years?
Viewing 1281 - 1290 interview questions