Filter interviews by
Be the first one to contribute and help others!
A C code that prints out the elements of an array of strings.
Declare an array of strings
Use a loop to iterate through the array
Print out each element
The probability of rain in Chennai today depends on various factors such as season, weather conditions, and location.
The probability can be estimated by analyzing the current weather patterns and historical data.
Factors such as humidity, temperature, and wind speed can affect the probability of rain.
Local weather forecasts and satellite imagery can also provide insights into the likelihood of rain.
The probability of ra...
It is impossible to accurately predict the probability of India winning the next Cricket World Cup.
Sports events are unpredictable and depend on various factors such as team performance, weather conditions, injuries, etc.
Past performance of the team and individual players can be considered, but it does not guarantee future success.
Other teams participating in the tournament also play a significant role in determining t...
Yes, I know Java.
I have experience in Java programming.
I am familiar with Java syntax and concepts.
I have worked on Java projects in the past.
To retrieve data from the back end, you can use APIs or database queries.
Use API calls to fetch data from the back end server.
Execute database queries to retrieve data from the database.
Parse the response or query result to extract the required data.
Handle any necessary authentication or authorization for accessing the back end.
Examples: GET request to an API endpoint, SELECT query in SQL.
OOP is a programming paradigm based on the concept of objects, which can contain data and code.
OOP stands for Object-Oriented Programming
It focuses on creating objects that interact with each other to solve a problem
Encapsulation, inheritance, and polymorphism are key concepts in OOP
Example: A car object can have properties like color, make, and model, and methods like start and stop
OOP promotes code reusability and ma
Print the level order traversal of binary tree in spiral form
Perform level order traversal of the binary tree
Alternate the direction of traversal for each level
Use a stack to reverse the order of nodes in each level
Print the nodes in the order of traversal
Find the maximum element in each subarray of size k in a given array.
Iterate through the array from index 0 to n-k.
For each subarray of size k, find the maximum element.
Store the maximum elements in a separate array.
Return the array of maximum elements.
To find the Kth largest element in two sorted arrays, we can use the merge step of merge sort algorithm.
Merge the two arrays into a single sorted array using a modified merge sort algorithm.
Return the Kth element from the merged array.
Merge two sorted arrays into one sorted array with expected time complexity of (m+n).
Use a two-pointer approach to compare elements from both arrays and merge them into the first array.
Start comparing elements from the end of both arrays and place the larger element at the end of the first array.
Continue this process until all elements from the second array are merged into the first array.
No, I am not a loner.
I enjoy working in a team and collaborating with others.
I believe that teamwork leads to better results.
I am comfortable working with people from diverse backgrounds.
I actively seek out opportunities to network and build relationships.
I am a good listener and value the opinions of others.
based on 1 review
Rating in categories
TCS
Accenture
Wipro
Cognizant