Filter interviews by
Top trending discussions
I applied via Naukri.com and was interviewed in Aug 2020. There were 3 interview rounds.
To check palindrome and anagram of a string with O(n), use a hash table to store character frequencies.
Create a hash table to store the frequency of each character in the string.
For palindrome, check that no more than one character has an odd frequency.
For anagram, compare the hash tables of the two strings.
If the hash tables are equal, the strings are anagrams.
If the hash tables differ by only one character, the strin...
Optimized solutions and core principles applied in OOPS
Encapsulation, Inheritance, Polymorphism, Abstraction are core principles of OOPS
Optimized solutions can be achieved through efficient algorithms and data structures
Design patterns like Singleton, Factory, Observer can also be used for optimized solutions
Different types of risk in finance include market risk, credit risk, liquidity risk, operational risk, and legal risk.
Market risk refers to the potential for losses due to changes in market conditions, such as fluctuations in interest rates, exchange rates, or stock prices.
Credit risk is the risk of default by borrowers or counterparties, leading to potential losses for lenders or investors.
Liquidity risk is the risk o...
I applied via Recruitment Consultant and was interviewed before Nov 2019. There were 4 interview rounds.
posted on 5 Aug 2022
I applied via Referral and was interviewed before Aug 2021. There were 2 interview rounds.
Easy basic questions on ds algo, swap two numbers with out extra space
I applied via Campus Placement and was interviewed in Dec 2016. There were 5 interview rounds.
Find an odd occurring number among even occurring numbers.
Use XOR operation to cancel out even occurring numbers and get the odd occurring number.
Iterate through the array and XOR each element with the result variable.
The final result will be the odd occurring number.
Print the spiral order of a binary tree and matrix.
For binary tree, use level order traversal and alternate direction for each level.
For matrix, use four pointers to traverse in spiral order.
Example for binary tree: 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9
Example for matrix: 1 2 3 4 -> 8 7 6 5 -> 9 10 11 12 -> 16 15 14 13
Finding pairs in an array with a given sum.
Iterate through the array and for each element, check if the difference between the given sum and the element exists in the array.
Use a hash table to store the elements of the array and their indices for faster lookup.
If there are multiple pairs with the same sum, return any one of them.
If no pair is found, return null or an empty array.
Find total number of k element with given avg in an array in minimum time complexity.
Use sliding window technique to traverse the array in O(n) time complexity.
Maintain a sum variable to keep track of the sum of elements in the window.
If the sum of elements in the window is equal to k times the given avg, increment the count.
Move the window by subtracting the first element and adding the next element in the array.
Printing non-boundary elements of a binary tree
Traverse the tree in any order (preorder, inorder, postorder)
Check if the current node is not a boundary node (not the first or last node in its level)
If it is not a boundary node, print its value
Recursively traverse its left and right subtrees
Citi bank should set up its offices in major cities like Mumbai, Delhi, and Bangalore.
Citi bank should consider the economic and political stability of the region.
The bank should also consider the availability of skilled workforce and infrastructure.
Major cities like Mumbai, Delhi, and Bangalore have a large customer base and a well-established financial sector.
Setting up offices in multiple cities can help the bank re...
This question is asking for an analysis of the effectiveness and drawbacks of a certain approach or solution.
The question is asking for an evaluation of why a particular approach or solution is effective.
The answer should also include an analysis of the drawbacks or limitations of the approach.
Examples and evidence should be provided to support the analysis.
The response should demonstrate critical thinking and the abil...
based on 1 interview
Interview experience
Senior Software Engineer
491
salaries
| ₹9.7 L/yr - ₹31 L/yr |
Software Engineer
288
salaries
| ₹7 L/yr - ₹22.4 L/yr |
Lead Software Engineer
106
salaries
| ₹18 L/yr - ₹39 L/yr |
Senior Associate Software Engineer
105
salaries
| ₹11 L/yr - ₹25 L/yr |
Senior Test Analyst
84
salaries
| ₹8.7 L/yr - ₹26.6 L/yr |
Wells Fargo
JPMorgan Chase & Co.
Citicorp
American Express