i
ServiceNow
Filter interviews by
Top trending discussions
I applied via LinkedIn and was interviewed before Feb 2023. There were 3 interview rounds.
String based problem
Pattern search problem
The problem involves searching for a specific pattern in an array of strings
The pattern can be a substring or a regular expression
The solution should return the indices or strings that match the pattern
I applied via Approached by Company
Aptitude and coding round, one coding question and others are computer fundamentals
I applied via Referral and was interviewed in Sep 2024. There were 2 interview rounds.
General aptitude and out put realted questions
Face to face dsa and string manipulations
posted on 18 Oct 2024
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Java program to convert first letter of each word to upper case
Split the input string into an array of words
Iterate through each word and capitalize the first letter
Join the words back together into a single string
Java program to remove duplicate characters from a string
Create a HashSet to store unique characters
Iterate through the string and add each character to the HashSet
Construct a new string by appending characters from the HashSet
Design a web crawler to fetch and index web pages
Start by defining the scope of the crawler (e.g. which websites to crawl)
Implement a system to fetch web pages using HTTP requests
Parse the HTML content to extract relevant information (e.g. links, text)
Store the extracted data in a database or index for later retrieval
Implement a scheduling mechanism to prioritize and manage the crawling process
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
Frequency array, java collection, missing number
React Context is a feature in React that allows data to be passed down the component tree without having to pass props manually.
Context provides a way to share values like themes, user data, etc. across the component tree.
It avoids prop drilling, where props are passed down multiple levels to reach a component that needs them.
Context consists of two parts: a Provider component that provides the data and a Consumer comp...
Closure is a function that has access to its parent scope, even after the parent function has closed.
Closure is created when a function is defined inside another function.
The inner function has access to the outer function's variables and parameters.
The outer function returns the inner function, which can be called later with the parent scope still accessible.
Closures are used for data privacy, event handlers, and call
Algorithm to convert roman numeral to numbers
Create a dictionary to map roman numerals to their corresponding values
Iterate through the roman numeral string from right to left
If the current value is less than the previous value, subtract it from the total
If the current value is greater than or equal to the previous value, add it to the total
Return the total
React context is a way to pass data through the component tree without having to pass props down manually at every level.
Context provides a way to share values like a theme or user data across the component tree.
It avoids prop drilling and makes the code cleaner and more maintainable.
Context consists of two parts: a Provider component that provides the data and a Consumer component that consumes the data.
Context can be...
There is no abstract class in JavaScript.
JavaScript does not have a built-in abstract class concept.
However, it is possible to create abstract classes using functions and prototypes.
Abstract classes are used as blueprints for other classes to inherit from.
They cannot be instantiated on their own and must be extended by a subclass.
Abstract methods can be defined in the abstract class and must be implemented in the subcl
Function overloading is when multiple functions have the same name but different parameters. Function overriding is when a subclass provides its own implementation of a method that is already present in the parent class.
Function overloading is used to provide multiple ways to call a function with different parameters.
Function overriding is used to provide a specific implementation of a method in a subclass.
Function ove...
Implement a counter in a React app
Create a state variable to hold the count
Render the count in the UI
Add buttons to increment and decrement the count
Update the state variable on button click
Strings are immutable to ensure data integrity and prevent unintended changes.
Immutable strings allow for safer multithreading and concurrency.
String interning is possible because of immutability.
Immutable strings can be used as keys in dictionaries and hash tables.
Examples of immutable data types include numbers and tuples.
Interview experience
Software Engineer
402
salaries
| ₹11.8 L/yr - ₹47.5 L/yr |
Senior Software Engineer
309
salaries
| ₹16 L/yr - ₹59 L/yr |
Technical Support Engineer
118
salaries
| ₹8 L/yr - ₹24.5 L/yr |
Content Data Analyst
89
salaries
| ₹2.8 L/yr - ₹4.3 L/yr |
Staff Software Engineer
65
salaries
| ₹28 L/yr - ₹90 L/yr |
Salesforce
Oracle
SAP
Microsoft Corporation