Add office photos
Engaged Employer

Cadence Design Systems

4.1
based on 264 Reviews
Filter interviews by

Emkay Global Financial Services Interview Questions and Answers

Updated 14 Aug 2024
Popular Designations

Q1. check substring palindrome or not

Ans.

Check if a substring in an array of strings is a palindrome or not.

  • Iterate through each string in the array

  • For each string, check if any of its substrings are palindromes

  • Return true if a palindrome substring is found, false otherwise

Add your answer

Q2. Reverse linked list recursively

Ans.

Reverse a linked list recursively

  • Create a recursive function to reverse the linked list

  • Pass the current node and its next node as parameters

  • Update the next pointer of the current node to point to the previous node

Add your answer

Q3. Check if two stacks are equal

Ans.

Check if two stacks are equal by comparing each element in the stacks

  • Pop elements from both stacks and compare them one by one

  • If the sizes of the stacks are different, they are not equal

  • If any element in the stacks is different, they are not equal

Add your answer

Q4. find shortest path in graph

Ans.

Use Dijkstra's algorithm to find the shortest path in a graph

  • Implement Dijkstra's algorithm to find the shortest path between two nodes in a graph

  • Maintain a priority queue to keep track of the shortest distance to each node

  • Update the shortest distance to each node as you traverse the graph

  • Track the path by storing the previous node for each node visited

Add your answer
Discover Emkay Global Financial Services interview dos and don'ts from real experiences

Q5. Add two linked list

Ans.

To add two linked lists, iterate through both lists simultaneously and add corresponding nodes, considering carry from previous addition.

  • Create a dummy node to hold the result.

  • Initialize current node to dummy node.

  • Iterate through both lists, adding values and carry from previous addition.

  • Move to next nodes in both lists.

  • Handle cases where one list is longer than the other.

  • Handle final carry if present.

Add your answer

Q6. check tree is BST

Ans.

Check if a binary tree is a Binary Search Tree (BST)

  • Perform an in-order traversal of the tree and check if the resulting array is sorted

  • Keep track of the previous node value during traversal to compare with the current node value

  • Ensure that each node's value is greater than the previous node's value in the in-order traversal

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior Software Engineer Interview Questions from Similar Companies

3.6
 • 94 Interview Questions
3.4
 • 39 Interview Questions
3.5
 • 24 Interview Questions
3.7
 • 21 Interview Questions
3.7
 • 10 Interview Questions
4.0
 • 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
Get AmbitionBox app

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