Add office photos
Employer?
Claim Account for FREE

Freshworks

3.5
based on 690 Reviews
Video summary
Filter interviews by

10+ Shri Priyaji Agro Oils Interview Questions and Answers

Updated 5 Nov 2024
Popular Designations

Q1. Triplets with Given Sum Problem

Given an array or list ARR consisting of N integers, your task is to identify all distinct triplets within the array that sum up to a specified number K.

Explanation:

A triplet i...read more

Add your answer

Q2. K-th Largest Number in a BST

Given a binary search tree (BST) consisting of integers and containing 'N' nodes, your task is to find and return the K-th largest element in this BST.

If there is no K-th largest e...read more

Add your answer

Q3. Count Ways to Reach the N-th Stair Problem Statement

You are provided with a number of stairs, and initially, you are located at the 0th stair. You need to reach the Nth stair, and you can climb one or two step...read more

Add your answer
Q4. Can you design the Low-Level Design (LLD) and High-Level Design (HLD) for a system like BookMyShow?
Add your answer
Discover Shri Priyaji Agro Oils interview dos and don'ts from real experiences
Q5. Can you design a database schema for a support ticketing system, such as Freshdesk?
Add your answer

Q6. How do you build a tiny URL Application?

Ans.

A tiny URL application is built by generating short aliases for long URLs, storing them in a database, and redirecting users to the original URL when the alias is accessed.

  • Generate a unique short alias for each long URL

  • Store the alias and corresponding long URL in a database

  • Implement a redirect mechanism to redirect users from the alias to the original URL

  • Handle edge cases like duplicate URLs, expired aliases, and invalid URLs

Add your answer

Q7. Count pair whose sum is perfect square.

Ans.

Count pairs in an array whose sum is a perfect square.

  • Iterate through the array and calculate the sum of each pair.

  • Check if the sum is a perfect square using a function.

  • Increment a counter if the sum is a perfect square.

  • Return the final count of pairs.

Add your answer

Q8. Immediate higher number to right

Ans.

The immediate higher number to the right of each element in an array

  • Iterate through the array from right to left

  • For each element, compare it with the elements to its right to find the immediate higher number

  • Store the immediate higher number in a new array

Add your answer

Q9. Kth largest number in BST

Ans.

To find the Kth largest number in a Binary Search Tree (BST), we can perform an in-order traversal and keep track of the Kth largest element.

  • Perform an in-order traversal of the BST to get the elements in non-decreasing order.

  • Keep track of the Kth largest element while traversing the BST.

  • Return the Kth largest element once found.

Add your answer

Q10. Implement debounce function

Ans.

Debounce function delays the execution of a function until after a specified amount of time has passed since the last time it was invoked.

  • Create a function that takes a function and a delay time as parameters

  • Use setTimeout to delay the execution of the function

  • Use clearTimeout to reset the timer if the function is invoked again within the delay time

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Shri Priyaji Agro Oils

based on 11 interviews
3 Interview rounds
Coding Test Round
Technical Round
One-on-one Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior Software Engineer Interview Questions from Similar Companies

3.8
 • 52 Interview Questions
3.3
 • 39 Interview Questions
4.0
 • 17 Interview Questions
3.7
 • 15 Interview Questions
3.7
 • 11 Interview Questions
3.6
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter