Tip 1 : Be confident
Tip 2 : Be honest in interview
Tip 1 : Have some projects on your resume.
Tip 2 : Do not put false things on your resume.
It included 40 technical questions related to ECE, 30 aptitude questions, 15 coding questions(output prediction), and 2 coding questions.



1. The length of each array is greater than zero.
2. Both the arrays are sorted in non-decreasing order.
3. The output should be in the order of elements that occur in the original arrays.
4. If there is no intersection present then return an empty array.
Finding the intersection of two arrays means identifying the elements that are common to both arrays. Here are the steps to find the intersection of two arrays:
1. Create the Arrays: Start with two arrays that you want to find the intersection of. Let's call them `array1` and `array2`.
2. Initialize an Empty Result Array: You'll need a container to store the common elements. You can use an empty array or any other suitable data structure depending on your programming language.
3. Choose a Method:
- Brute Force: The simplest method is to use nested loops to compare each element of one array with each element of the other array. If an element is found in both arrays, add it to the result array.
- Optimized Methods: Depending on the programming language, you may have access to built-in functions or data structures that can optimize this process, such as sets or hash tables.
4. Iterate Through the First Array:
- If you're using nested loops, start by iterating through `array1`.
5. Compare Elements:
- For each element in `array1`, check if it exists in `array2`. You can use a nested loop for brute force or utilize the optimized methods available in your programming language.
6. Add Common Elements to Result Array:
- If an element is found in both `array1` and `array2`, add it to the result array. Ensure that you don't add duplicates if they exist in either array.
7. Iterate Through the Second Array:
- If you're using nested loops, now iterate through `array2`. This step is essential if you want to find elements that appear in both arrays regardless of their order.
8. Finalize the Result:
- If you haven't been adding elements to the result array in the previous steps (e.g., if you used sets or hash tables), make sure to finalize your result array now.
9. Result Array Contains Intersection:
- The result array now contains the intersection of `array1` and `array2`. It includes all the elements that are common to both arrays.
10. Handle Duplicates (Optional):
- If your arrays contain duplicate elements, and you want to eliminate duplicates from the result, you can do so by applying additional logic or using data structures that do not allow duplicates.
11. Output or Use the Intersection: Depending on your use case, you can now use, display, or manipulate the elements in the result array as needed.
Here's a simple example in Python:
```python
def find_intersection(array1, array2):
result = []
for element in array1:
if element in array2 and element not in result:
result.append(element)
return result
```
This function takes two arrays (`array1` and `array2`) as input and returns an array containing their intersection.



The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Can you solve this problem in O(N) time and O(1) space complexity?
The basic structure of prompt engineering.
Playground parameters in ChatGPT3. (Learn)
Prompt engineering is the process of designing and crafting effective prompts for generating desired responses from language models like GPT-3.5. A well-structured prompt is crucial in obtaining accurate and relevant information from the model. Here's a basic structure for prompt engineering:
1. Specify the Context:
- Begin by setting the context or providing any necessary background information. This helps the model understand the context and generate more relevant responses.
2. State the Task or Question Clearly:
- Clearly and explicitly state the task or question you want the model to address. Make sure it's specific and unambiguous.
3. Set Any Constraints or Guidelines:
- If there are specific guidelines or constraints for the response, make them clear in the prompt. For example, you can specify a word limit, ask for a summary, or request a comparison.
4. Use Natural Language:
- Write the prompt in natural language that is easy for the model to understand. Avoid overly technical or complex language unless necessary.
5. Provide Examples (Optional):
- If it helps to illustrate the desired response, you can include one or more examples in the prompt. This can give the model a better understanding of your expectations.
6. Consider the Model's Limitations:
- Keep in mind the limitations of the language model you are working with. For example, if the model's knowledge is limited to a specific date, specify that date if relevant.
7. Test and Iterate:
- It's often necessary to experiment with different prompts and see which one yields the best results. You may need to iterate and refine your prompts based on the model's responses.
8. Monitor and Review Outputs:
- After generating responses, carefully review and evaluate them to ensure they meet your requirements. Adjust the prompts as needed if the responses are not satisfactory.
9. Consider Safety and Ethical Concerns:
- Be mindful of the potential ethical and safety concerns associated with prompt engineering. Avoid prompts that may lead to harmful or inappropriate content.
10. Adapt to the Model's Strengths and Weaknesses:
- Different language models may have different strengths and weaknesses. Adapt your prompts to leverage the model's strengths and work around its limitations.
11. Gather Feedback:
- If possible, gather feedback from users or experts who interact with the model's responses. This feedback can help you refine your prompts further.
12. Document Your Prompts:
- Maintain a record of the prompts you have used and their corresponding responses. This documentation can be valuable for future reference and analysis.
13. Iterate and Improve Continuously:
- Prompt engineering is an ongoing process. As language models improve and evolve, revisit your prompts and adapt them to take advantage of new capabilities.
Remember that the effectiveness of your prompts can significantly impact the quality of responses from language models, so investing time and effort in prompt engineering is essential for achieving your desired outcomes.
It included hypothetical question related to family background, strengths and weaknesses.
Describe your family background.
Tell your strengths and weaknesses.
Any questions from your side?
Tip 1: Be honest
Tip 2: Be focussed

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?