i
PTC
Filter interviews by
I applied via Approached by Company and was interviewed in Jan 2023. There were 4 interview rounds.
They will meet again after the starting point at a distance of LCM(x, y).
The distance at which they will meet again is the least common multiple (LCM) of their speeds.
For example, if A is running at a speed of 4 m/s and B is running at a speed of 6 m/s, they will meet again after 12 meters.
Another example, if A is running at a speed of 3 km/hr and B is running at a speed of 5 km/hr, they will meet again after 15 km.
A program to generate Fibonacci series using iterative or recursive approach.
Iterative approach: Use a loop to generate Fibonacci numbers by adding the previous two numbers.
Recursive approach: Define a function that calls itself to generate Fibonacci numbers.
Example: Fibonacci series up to 10 - 0, 1, 1, 2, 3, 5, 8, 13, 21, 34
A program to determine if a given number is prime or not.
Check if the number is less than 2, if so it is not prime
Iterate from 2 to the square root of the number and check for divisibility
If the number is divisible by any number other than 1 and itself, it is not prime
If no divisors are found, the number is prime
Swapping two numbers using different techniques and discussing possible test cases and errors.
Using a temporary variable to swap the numbers
Using arithmetic operations to swap the numbers
Using bitwise XOR operation to swap the numbers
Test cases: positive numbers, negative numbers, zero, large numbers, floating point numbers
Possible errors: not using a temporary variable correctly, overflow/underflow with arithmetic ope
I have a strong understanding of PTC core values.
PTC core values include customer success, innovation, integrity, and teamwork.
I have demonstrated my understanding of these values through my work on projects that prioritize customer satisfaction and collaboration.
I have also shown my commitment to integrity by always following ethical guidelines in my work.
I stay updated on industry trends and technologies to contribut
Top trending discussions
I applied via Company Website and was interviewed before Jul 2023. There were 2 interview rounds.
Basic programs based on mathematical and loops.
I applied via Campus Placement
Question related to operating system and computer network
I applied via campus placement at Dayananda Sagar College of Engineering, Bangalore and was interviewed in Oct 2024. There were 4 interview rounds.
3 coding dsa question
Difficulty is On your luck
My friends got easy level
I got medium level
Some got hard questions as well
Ssh round , quant and logical
Tip: bring your calculator
Some MCQs and 2 Coding Questions to be solved in different languages
Group Discussion to assess candidates thinking and knowledge.
I applied via Referral and was interviewed in Sep 2024. There were 2 interview rounds.
Use dynamic programming to find the longest palindromic substring in a given string.
Iterate through the string and expand around each character to find palindromes.
Store the length of the longest palindrome found so far.
Return the substring based on the start and end indices of the longest palindrome.
To serialize and deserialize a tree, use a recursive approach to traverse the tree and store the data in a suitable format.
Use pre-order traversal to serialize the tree by storing the node values in a list or string.
For deserialization, reconstruct the tree by recursively building nodes from the serialized data.
Consider using JSON or XML format for serialization to easily store and retrieve tree structure.
Use regex library to match given regex with string.
Use a regex library like re in Python to match the given regex with the string.
Check if the regex matches the string using the library functions.
Handle cases where the regex contains special characters like . and * appropriately.
Throttling is a technique used to control the rate of requests sent to a server.
Throttling helps prevent server overload by limiting the number of requests processed at a time.
Implementing a throttle function involves setting a maximum request rate and delaying excess requests.
Example: Implementing a throttle function in a web application to limit the number of API calls made to a third-party service.
Example: Throttlin...
Sort the squares of elements in a sorted array and return the sorted response.
Iterate through the array and square each element.
Store the squared values in a new array.
Sort the new array and return it.
A promise is a commitment to do something in the future, typically used for asynchronous operations in JavaScript.
Promises are used to handle asynchronous operations in JavaScript.
They represent a value that may be available now, in the future, or never.
Promises have three states: pending, fulfilled, or rejected.
Example: new Promise((resolve, reject) => { setTimeout(() => resolve('Done!'), 1000); });
Event loop is a mechanism that allows for asynchronous execution of code by managing the order of events in a single thread.
Event loop continuously checks the call stack for any functions that need to be executed, and processes them in a non-blocking manner.
Different types of queues in event loop include microtask queue (Promise callbacks), macrotask queue (setTimeout, setInterval callbacks), and animation frame queue
Virtual DOM is a lightweight copy of the actual DOM, used to improve performance by minimizing direct manipulation of the real DOM.
Virtual DOM is a concept used in frameworks like React to optimize rendering performance.
Changes are first made to the virtual DOM, which is then compared to the real DOM to identify the minimal updates needed.
This approach reduces the number of actual DOM manipulations, resulting in faster...
posted on 8 Oct 2024
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
OOPS is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
OOPS focuses on the concept of classes and objects
Encapsulation: bundling data and methods that operate on the data within a single unit
Inheritance: allows a class to inherit properties and behavior from another class
Polymorphism: ability to present the same interface for diffe...
Comparable is an interface used for natural ordering, Comparator is an interface used for custom ordering. Abstract class can have method implementations, Interface cannot.
Comparable interface is used to define the natural ordering of objects. Example: String class implements Comparable interface for natural ordering based on alphabetical order.
Comparator interface is used to define custom ordering of objects. Example:...
Count occurrences of each character in a given string
Create an array to store the count of each character
Iterate through the string and increment the count of each character in the array
Return the array with counts for each character
Remove duplicates from an array of strings
Iterate through the array and store each element in a set to keep track of unique values
Create a new array with the unique values from the set
Written coding test
Basic coding questions
Only c c++
Easy level
posted on 9 Oct 2024
based on 7 reviews
Rating in categories
Software Specialist
158
salaries
| ₹7.5 L/yr - ₹17 L/yr |
Senior Software Specialist
110
salaries
| ₹9.1 L/yr - ₹24 L/yr |
Technical Lead
108
salaries
| ₹10.1 L/yr - ₹29 L/yr |
QA Specialist
82
salaries
| ₹7 L/yr - ₹15 L/yr |
Product Specialist
75
salaries
| ₹7.5 L/yr - ₹13 L/yr |
Autodesk
Siemens
Bosch
ABB