Preparation
Preparation
maps, sorting and simple D Given a string “aabbbccccc” count the occurences of every
a minute.
SA question
MAtrix
Based on the information you've provided question pattern
2. cycle t shift array
3.string ,suffix
4. 8 by 8 cube max length where robot can travel
about the Autodesk hiring process and the questions asked in each round, here's a summary of the
key topics and concepts you should focus on in your preparation:
2. **Arrays:**
- Array manipulation and operations.
- Understanding array-related algorithms.
You
Exciting News: Delighted to share that I've accepted a 6-month internship at
Highlights: 👨💻 Technical Interview I and II: (35 + 45 mins) The first technical
interview covered data preprocessing intricacies, outlier analysis
methodologies, distinctions between perspective and descriptive analysis, and
practical coding challenges (standard leetcode) followed by discussion on
addressing overfitting and underfitting while training models. The second
interview delved into Python proficiency, API data handling, operating
systems, networking with a focus on the transport layer, and SQL discussions
encompassing various types of joins. Additionally, the conversation extended
to application-based queries involving data-specific Python libraries and file
data reading in hierarchical directories, along with inquiries into the past
2. **Binary Search:**
- Implementing Binary Search algorithm.
- Analyzing time complexity of Binary Search.
3. **Javascript:**
- Basics of Javascript.
- Lexical scoping in Javascript.
4. **Core Subjects:**
- ACID properties in databases.
- Polymorphism and Runtime Polymorphism.
3. **Projects on Resume:**
- Thorough understanding of the projects on your resume.
- Be ready to explain the challenges faced and lessons learned.
4. **Working Environment:**
- Ability to work efficiently in an environment with strangers.
- Confidence in your communication and interpersonal skills.
3. **Database Concepts:**
- Review basic concepts of Database Management Systems, including SQL queries.
4. **OOP Principles:**
- Understand and apply Object-Oriented Programming principles.
6. **Company Research:**
- Gather information about Autodesk's products, culture, and recent news.
- Understand the role you are applying for and how your skills align with it.
7. **Communication Skills:**
- Practice effective communication during technical discussions and HR interviews.
Remember to tailor your preparation based on your strengths and weaknesses. Regular practice and a
thorough understanding of core concepts will enhance your performance in technical interviews.
Good luck with your preparation!
Certainly! Here are the questions along with their answers in Java:
### Problem 1:
#### Question:
You are given an array of positive integers `arr`. Determine how many triangles can be formed with
side lengths equal to adjacent elements from `arr`. Construct an array of integers of length `arr.length
- 2`, where the ith element is equal to 1 if it's possible to form a triangle with side lengths `arr[i]`, `arr[i
+ 1]`, and `arr[i + 2]`, otherwise 0.
```java
for(int i=0;i<A.length-2;i++){
int a = A[i];
int b = A[i+1];
int c = A[i+2];
return ans;
}
}
#### Example:
```java
int[] arr1 = {1, 2, 2, 4};
int[] result1 = solution(arr1); // Output: [1, 0]
### Problem 2:
#### Question:
Given an array of integers `a`, your task is to calculate the digits that occur the most number of times
in the array. Return the array of these digits in ascending order.
```java
import java.util.*;
Collections.sort(result);
return result;
}
```
#### Example:
```java
int[] a = {25, 2, 3, 57, 38, 41};
List<Integer> result = solution(a); // Output: [2, 3, 5]
```
### Problem 3:
#### Question:
Given an array of integers `a` of even length, split it into two arrays of equal length such that all the
numbers are unique in each of them. If there is no solution, return an empty array.
```java
import java.util.*;
return result;
}
```
#### Example:
```java
int[] arr4 = {2, 1, 2, 3, 3, 4};
List<List<Integer>> result4 = solution(arr4); // Output: [[2, 1, 3], [2, 3, 4]]
Feel free to test these solutions and let me know if you have any questions or need further
clarification on any part of the code!
In an online assessment for Autodesk, we were asked to solve the following question:
Given an array of strings words, find the number of pairs where either the strings are equal or one
string ends with another. In other words, find the number of such pairs i j ( 0 <= i < j < words.length)
that words[i] is a suffix of words[j], or words[j] is a suffix of words[i].
Example
java
Copy code
public class Solution {
public static int solution(String[] words) {
int count = 0;
return count;
}
Optimization: When you find a pair where words[i] is equal to words[j] or is a suffix of words[j], you
can break out of the inner loop because there's no need to check the reverse condition (suffix of
words[i] in words[j]).
To understand why some test cases are failing, consider checking the constraints and edge cases. The
constraints might involve the size of the array (words.length) or the length of individual strings within
the array. Ensure that your code can handle the upper bounds specified in the constraints.
For example, if the constraints state that 1 <= words[i].length <= 100, then you need to make sure
that your code performs well even when dealing with very long strings.
Without the specific details of the failed test cases, it's challenging to provide an exact solution.
Consider reviewing the test cases where your code failed and check for edge cases or scenarios that
your implementation might not cover. If possible, share more information about the failed test cases
for a more targeted analysis.
Certainly! Let's cover the basics of SQL and normalization concepts in Database Management Systems
(DBMS).
### Basics of SQL:
#### 7. **JOIN:**
- Combine rows from two or more tables based on a related column.
```sql
SELECT * FROM table1 JOIN table2 ON table1.column = table2.column;
```
#### 9. **Subqueries:**
- Nest a query within another query.
```sql
SELECT column1 FROM table_name WHERE column2 IN (SELECT column2 FROM another_table);
```
#### 7. **Denormalization:**
- Intentionally adding redundancy to improve query performance.
These SQL and normalization concepts provide a foundation for working with relational databases and
designing efficient database structures. Practice implementing these concepts in a database
management system like MySQL, PostgreSQL, or SQLite to strengthen your skills.
UPDATAED DATA
OS
Operating System lies in the category of system software. It basically
manages all the resources of the computer. An operating system acts as an
interface between the software and different parts of the computer or the
computer hardware.
What is spooling?
Explain the core functions of an operating system.
What is RAID? Different types of RAID
What are the causes of Failure in Operating System?
What is cache?
What is a Disk Scheduling Algorithm?
What is thread in OS?
What is different between main memory and secondary memory.
What is the concept of thrashing?
What’s the difference between Mutex and Semaphore ?
Computer Networks
A computer network is a system that connects numerous independent
computers in order to share information (data) and resources. The
integration of computers and other different devices allows users to
communicate more easily.
Explain the OSI model and its seven layers.
Differentiate between TCP and UDP protocols.
What is Kernel in Operating system?
Explain the concept of subnetting.
Explain TCP/IP Model .
What are the different types of networks?
What are Firewalls?
What is meant by NOS?
What is Proxy Server?
What is the SMTP protocol?
DBMS and SQL
Database Management System is a software or technology used to manage
data from a database. Some popular databases are MySQL, Oracle,
MongoDB, etc. DBMS provides many operations e.g. creating a database,
Storing in the database, updating an existing database, delete from the
database.
What’s the difference Between Clustered and Non-Clustered
Index?
What are the key differences between DBMS and RDBMS?
What is Normalization?
What are the types of subquery?
What is SQL Injection?
What is the E-R model?
What is a transaction?
What is DML (Data Manipulation Language)?
What’s the difference between DELETE, DROP and
TRUNCATE
What is Denormalization?
DSA Questions
Problems Practise
Next higher palindromic number using the same set of digits Solve
Sure, here's a rough categorization of the topics you listed from easier to harder:
1. **Array to BST**
2. **Count More than n/k Occurrences**
3. **Segregate 0s and 1s**
4. **Next higher palindromic number using the same set of digits**
5. **Rotate Array**
6. **Rotate a Linked List**
7. **Delete middle element of a stack**
8. **Split a Circular Linked List into two halves**
9. **Flattening a Linked List**
10. **Convert an array to reduced form**
11. **Search in a row-column sorted Matrix**
12. **Merge K sorted linked lists**
13. **Stack using two queues**
14. **Permutations of a given string**
15. **Majority Element**
16. **Find the Missing Number**
17. **Top K Frequent Elements in Array**
18. **Count the number of possible triangles**
19. **Balance a Binary Search Tree**
20. **LRU Cache**
21. **QuickSort on Doubly Linked List**
22. **Triplet Sum in Array**
23. **Chocolate Distribution Problem**
24. **Capacity To Ship Packages Within D Days**
25. **Word Ladder**
26. **Alien Dictionary**
27. **Bridges in a graph**
28. **DFS of Graph**
29. **Detect Cycle in a Directed Graph**
30. **Topological Sorting**
31. **Array to BST**
32. **Check for BST**
33. **Top View of Binary Tree**
34. **N-Queen Problem**
35. **Burning Tree**
36. **Diameter of a Binary Tree**
37. **Word Break**
38. **The Stock Span Problem**
39. **Rearrange characters**
40. **Find median in a stream**
41. **Remove duplicate elements from sorted Array**
42. **Find the longest substring with k unique characters in a given string**
43. **Maximum length substring having all same characters after k changes**
44. **Longest Palindromic Substring**
45. **Permutations of a given string**
46. **Edit Distance**
47. **Longest Path in a matrix**
48. **Longest Path in a matrix**
49. **Maximum path sum in matrix**
50. **Rotten Oranges**
51. **Snake and Ladder Problem**
52. **Travelling Salesman Problem**
53. **Wildcard Pattern Matching**
54. **Split a Circular Linked List into two halves**
55. **Flattening a Linked List**
56. **Decode the string**
57. **Minimum edges**
58. **Matrix Chain Multiplication**
59. **Implementing Dijkstra Algorithm**
60. **Fractional Knapsack Problem**
61. **Maximum Width of Tree**
62. **Word Ladder**
63. **Alien Dictionary**
64. **Bridges in a graph**
65. **DFS of Graph**
66. **Detect Cycle in a Directed Graph**
67. **Topological Sorting**
68. **Shortest path in a Binary Maze**
69. **Rabin-Karp Algorithm for Pattern Searching**
70. **Edit Distance**
71. **Word Ladder**
72. **Alien Dictionary**
73. **Longest Path in a matrix**
74. **Find the longest substring with k unique characters in a given string**
75. **Maximum length substring having all same characters after k changes**
76. **Longest Palindromic Substring**
This ordering is subjective and may vary depending on individual familiarity and expertise with
different algorithms and problem-solving techniques.
Mern interview –
Interview
There were three interview rounds which were held on-campus. In the first round,
they asked questions on my final-year project discussing about the various tech-
stacks like ReactJS and how did I implemented the authentication part of that
website using JWT token. Later on, they also asked some basic DSA questions
related to linked list and strings. In the subsequent rounds, they asked me deep
questions on C++ pointers, NodeJS and MongoDB ranging from direct theory
questions to the implementation part. Third round was a good composition of HR
round and technical as the interviewer asked me my favourite music composer
followed by making me write down the database of a popular audio-editing
software known as Audacity.
Interview questions
1. How did you implement the authentication page of your website using
JWT tokens ? Apart from JWT token, what else can you use for the
same ? 2. What are the various queries you can use in MongoDB for
achieving CRUD operations in your project ? 3. Design the database for a
music-editing software like Audacity displaying various tables like albums,
tracks, effects etc. 4. Reverse a linked list. 5. How does a Google-Pay API
work and how does your website come to know whether a payment
through an external interface is successful or not ? 6. Reverse a string
using proper classes and all so that all the properties of object-oriented
programming can be used in a single programming file. Also, instead of
directly taking inputs from the console, you have to allow users to make
choices on taking inputs while abstracting the input methods from the user
at the same time ?
Third round:
One-to-One Interview