JPMorgan Chase & Co.
10+ Zencommerce Interview Questions and Answers
Chintu has a long binary string ‘str’. A binary string is a string that contains only 0 and 1. He considers a string ‘beautiful’ if and only if the number of 0's and 1's in the string are equ...read more
Given 'N' number of intervals, where each interval contains two integers denoting the boundaries of the interval. The task is to merge all the overlapping intervals and return the lis...read more
Given a binary tree. Print the Left View of the Tree.
Example :
If the input tree is as depicted in the picture:
The Left View of the tree will be: 2 35 2
Input format :
Elements in t...read more
Q4. Describe a situation when you had to explain something to someone who was not understanding a concept related to a topic. Explain how you overcame the issue .
I explained a complex algorithm to a non-technical team member.
Broke down the concept into simpler terms
Used analogies or real-life examples to clarify
Encouraged questions and feedback
Offered additional resources for further understanding
Q5. what is time omplexity . explain with examples
Time complexity refers to the amount of time an algorithm takes to run as a function of the input size.
Time complexity is typically expressed using Big O notation, which describes the worst-case scenario.
Common time complexities include O(1) for constant time, O(log n) for logarithmic time, O(n) for linear time, O(n^2) for quadratic time, and O(2^n) for exponential time.
For example, searching for an element in a sorted array using binary search has a time complexity of O(log ...read more
Q6. Print all the permutations of a string both iterative and recursive way.
Print all permutations of a string iteratively and recursively.
Iterative approach: Use a stack to keep track of characters and their positions. Swap characters to generate permutations.
Recursive approach: Use backtracking to generate all possible permutations by swapping characters.
Example: Input 'abc', output ['abc', 'bac', 'cab', 'acb', 'bca', 'cba']
Q7. WHat IS circular linked list
A circular linked list is a linked list where the last node points back to the first node, forming a circle.
Each node has a reference to the next node in the list.
The last node's reference points back to the first node.
Traversal can start from any node and loop through the entire list.
Q8. Process PDF and its content written in tabular format
Use a PDF processing tool to extract and analyze tabular data from PDF files.
Use a PDF parsing library like PyPDF2 or PDFMiner to extract text from PDF files.
Identify tables in the extracted text based on tabular structure or patterns.
Use regular expressions or table detection algorithms to parse and organize tabular data.
Consider using tools like pandas in Python for further data manipulation and analysis.
Q9. Explain difference between numpy array and list
Numpy arrays are more efficient for numerical operations compared to lists.
Numpy arrays are homogeneous in nature, while lists can contain different data types.
Numpy arrays support vectorized operations, making them faster for numerical computations.
Numpy arrays require less memory compared to lists for large datasets.
Example: np_array = np.array([1, 2, 3]) vs list = [1, 2, 3]
Q10. bases on C++ multithreding
C++ multithreading allows for concurrent execution of multiple threads within a single program.
Use mutexes to prevent race conditions and ensure thread safety
Avoid deadlocks by carefully managing locks and avoiding nested locks
Consider using condition variables to signal between threads
Use thread pools to manage and reuse threads efficiently
Be aware of potential performance issues and overhead with multithreading
Q11. Is React one way data binding?
Yes, React uses one-way data binding to ensure that changes in the UI trigger updates in the underlying data model.
React uses a unidirectional data flow, where data flows from parent components to child components.
Changes in the UI trigger updates in the underlying data model, but not the other way around.
This helps in maintaining a predictable state of the application and improves performance.
Example: When a user interacts with a form input field, the data is updated in the ...read more
Q12. Kubernetes architecture and its components
Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications.
Kubernetes architecture consists of a master node and multiple worker nodes.
Master node components include API server, scheduler, controller manager, and etcd.
Worker node components include kubelet, kube-proxy, and container runtime (e.g. Docker).
Kubernetes uses Pods as the smallest deployable units, which can contain one or more c...read more
Q13. Binary search to find peaks in an array
Binary search to find peaks in an array
Implement binary search to find peaks in the array
Compare mid element with its neighbors to determine if it is a peak
Recursively search in the half of the array where the peak is likely to be found
Q14. Sorting of 1d array
Sorting a 1d array of strings
Use a sorting algorithm like bubble sort, selection sort, or merge sort
Consider using built-in sorting functions in programming languages like sort() in Python or Arrays.sort() in Java
Ensure to compare strings correctly based on their ASCII values
Q15. Ai parking management system design
Designing an AI parking management system to optimize parking space usage and improve efficiency.
Utilize sensors to detect available parking spaces in real-time
Implement machine learning algorithms to predict parking demand and optimize space allocation
Integrate with mobile apps for users to easily find and reserve parking spots
Use computer vision for license plate recognition and enforcement of parking rules
Q16. What is Kubernetes
Kubernetes is an open-source container orchestration platform for automating deployment, scaling, and management of containerized applications.
Kubernetes helps in automating the deployment, scaling, and management of containerized applications.
It allows for easy scaling of applications by adding or removing containers based on demand.
Kubernetes provides features like load balancing, self-healing, and rolling updates for applications.
It simplifies the management of containers ...read more
Q17. Merge two dataframe
Merging two dataframes combines them into a single dataframe based on a common column or index.
Use the merge() function in pandas library in Python to merge dataframes
Specify the common column or index to merge on
Choose the type of join (inner, outer, left, right) based on your requirement
More about working at JPMorgan Chase & Co.
Top HR Questions asked in Zencommerce
Interview Process at Zencommerce
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month