i
AmbitionBox
Filter interviews by
Clear (1)
posted on 20 Jan 2025
I applied via Company Website and was interviewed in Dec 2024. There were 8 interview rounds.
I am to good for any type of work doing
Question: Write a function to sort an array of integers in ascending order without using the built-in sort() function.
javascript
Copy code
function customSort(arr) {
// Your code here
}
console.log(customSort([5, 3, 8, 1])); // Output: [1, 3, 5, 8]
Operational Efficiency: Automating workflows in ServiceNow should reduce processing time for customer queries and loan applications by 50%.
Increased Visibility: SEO and SEM strategies should increase the bank’s website traffic by 30% within 3 months.
Improved Customer Experience: A modern portal with faster support options will increase customer satisfaction ratings.
A report/document explaining the solutions for the above tasks.
A code file for the HTML/CSS/JavaScript task.
Screenshots or diagrams (if applicable) for ServiceNow workflows.
Data Interpretation
Study the following data and answer the question:
Year Revenue (₹) Profit (₹)
2020 10,000 2,000
2021 12,000 3,000
2022 15,000 4,000Question:
What is the average profit percentage over the three years?
Options:
A) 20%
B) 25%
C) 22%
D) 27%
What people are saying about AmbitionBox
posted on 27 Jan 2017
I was interviewed in Dec 2016.
Solution to performing operations on a large array of bits.
Use bitwise operators to perform operations on individual bits
Use a loop to iterate through the array and perform the operations
Ensure that the array is large enough to accommodate all the bits
Consider using a data structure like a bitset for efficient bit manipulation
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Easy
In first round they asked me 2 coding questions where he asked me to code as close as possible to the actual one.
Ninja is tasked with merging two given sorted integer arrays ARR1
and ARR2
of sizes 'M' and 'N', respectively, such that the merged result is a single sorted array w...
Merge two sorted arrays into one sorted array in place.
Use two pointers to compare elements from both arrays and place them in the correct position in ARR1.
Start from the end of ARR1 and compare elements from both arrays, placing the larger element at the end of ARR1.
Continue this process until all elements from ARR2 are merged into ARR1.
Given a document represented as an array/list ARR
of words with length N
, find the smallest distance between two given words for multiple queries. The distance is defined as the ...
Find the smallest distance between two words in a document for multiple queries.
Iterate through the document array to find the indices of the two words in each query.
Calculate the absolute difference between the indices to get the distance.
If a word from the query is not present in the document, return the length of the document array.
Repeat the process for each query and output the smallest distance for each.
Round duration - 60 minutes
Round difficulty - Easy
Then in the second round they asked a little about tree and told me to code 2 codes.
Given a binary tree of integers, return the level order traversal of the binary tree.
The first line contains an integer 'T', representing the number of te...
The problem requires implementing a function to return the level order traversal of a binary tree.
Implement a function that takes the root of the binary tree as input and returns the level order traversal of the tree.
Use a queue data structure to perform level order traversal.
Process each level of the tree one by one, starting from the root node.
Print the node values at each level in the order they appear from left to ...
Given an array of distinct positive integers ARR
and a non-negative integer 'B', find all unique combinations in the array where the sum is equal to 'B'. Numbers can be c...
Find all unique combinations in an array where the sum is equal to a given target sum, with elements in non-decreasing order.
Use backtracking to generate all possible combinations.
Sort the array to ensure elements are in non-decreasing order.
Track the current combination and sum while backtracking.
Terminate recursion when the sum equals the target sum.
Avoid duplicates by skipping elements that have been used in previou
Round duration - 30 minutes
Round difficulty - Easy
HR round with typical behavioral problems.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Medium
This was a online test round where I was given 3 DSA questions to be solved in 60 minutes.
You are provided with a number of stairs, and initially, you are located at the 0th stair. You need to reach the Nth stair, and you can climb one or tw...
The problem involves finding the number of distinct ways to climb to the Nth stair by taking one or two steps at a time.
Use dynamic programming to solve the problem efficiently.
The number of ways to reach the Nth stair is the sum of the number of ways to reach the (N-1)th stair and the (N-2)th stair.
Handle base cases for N=0 and N=1 separately.
Consider using modulo 10^9+7 to avoid overflow in calculations.
You are playing a coin game with your friend Ninjax. There are N
coins placed in a straight line.
Here are the rules of the game:
1. Each coin has a value associated wit...
The problem involves finding the optimal strategy to accumulate the maximum amount in a coin game with specific rules.
Start by understanding the rules of the game and how players take turns to choose coins.
Consider the scenario where both players play optimally to maximize winnings.
Iterate through different strategies to determine the best approach for selecting coins.
Keep track of the total winnings accumulated by eac...
Given an integer N
, your task is to create all possible valid parentheses configurations that are well-formed using N
pairs. A sequence of parentheses is considered w...
Generate all possible valid parentheses configurations using N pairs.
Use backtracking to generate all possible combinations of parentheses.
Keep track of the number of open and close parentheses used.
Add '(' if there are remaining open parentheses, and add ')' if there are remaining close parentheses.
Base case: when the length of the generated string is 2*N, add it to the result array.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
posted on 15 Sep 2021
I was interviewed in Dec 2020.
Round duration - 90 minutes
Round difficulty - Medium
Total of 8 questions:
4 MCQ(oops and expected output type questions) + other 2 were coding questions, out of which one is some class implementation question.
Given an array ARR
and an integer K
, your task is to count all subarrays whose sum is divisible by the given integer K
.
The first line of input contains an...
Count subarrays with sum divisible by K in an array.
Iterate through the array and keep track of the running sum modulo K.
Use a hashmap to store the frequency of remainders.
For each prefix sum, check how many previous prefix sums have the same remainder.
Return the total count of subarrays with sum divisible by K.
Round duration - 60 minutes
Round difficulty - Easy
This round was with the USA team, the panel consisted of 2 members. It took place at around 9 PM IST. The interviewer's focus was on approach.
You are given an unsorted array ARR
. Your task is to sort it so that it forms a wave-like array.
The first line contains an integer 'T', the number of test cases.
For ea...
Sort an array in a wave-like pattern where each element is greater than or equal to its adjacent elements.
Iterate through the array and swap elements at even indices with their adjacent odd indices to form a wave pattern.
There can be multiple valid wave arrays, so any valid wave array is acceptable.
Ensure the first element is greater than or equal to the second element to start the wave pattern.
Given an integer number num
, your task is to convert 'num' into its corresponding word representation.
The first line of input contains an integer ‘T’ denoting the number o...
Convert a given integer number into its corresponding word representation.
Implement a function that takes an integer as input and returns the word representation of that number.
Break down the number into its individual digits and convert each digit into its word form.
Handle special cases like numbers between 10 and 19, and multiples of 10.
Combine the word forms of individual digits to form the final word representation
Round duration - 40 minutes
Round difficulty - Easy
It was a managerial round. The position of the person taking the interview was of a technical architect. As was informed by the recruiter, previously he was a technical architect at Amazon.
Facebook stores comments in its database using a combination of relational and non-relational databases.
Comments are typically stored in a relational database like MySQL for structured data storage.
For scalability and performance, Facebook may also use a NoSQL database like Cassandra or HBase for storing comments in a denormalized format.
Metadata related to comments such as likes, timestamps, and user information may b...
Tip 1 : Practice the most frequent and most common questions DSA questions asked in companies like Amazon, Microsoft.
Tip 2 : Focus on solving the questions on your own as much as you can.
Tip 3 : Don't waste your time on the number of questions while compromising quality.
Tip 4 : Do mock interviews with your friend if it's been a long since you have given the interview.
Tip 5 : For virtual interviews, always have a backup of data(you may use mobile data if Wi-Fi goes out). While during an interview try to maintain eye contact every now and then.
Tip 6 : Keep your resume short to 1 page and have far/good knowledge of the tech stack you have mentioned
Tip 1 : Keep it short to 1 page
Tip 2 : Prepare it well.
Tip 3 : Focus more on the problem and the solution. Rather than tools used to solve the problem
Some database questions,some java questions .
JavaScript is a programming language used for web development, while jQuery is a library built with JavaScript to simplify HTML document traversal and manipulation.
JavaScript is a programming language, while jQuery is a library written in JavaScript.
JavaScript can be used for a wide range of tasks, while jQuery is mainly used for DOM manipulation and event handling.
JavaScript is a core technology for web development, w...
Different types of joins are used in SQL to combine rows from two or more tables based on a related column between them.
Inner Join: Returns rows when there is at least one match in both tables.
Left Join (or Left Outer Join): Returns all rows from the left table and the matched rows from the right table.
Right Join (or Right Outer Join): Returns all rows from the right table and the matched rows from the left table.
Full ...
Multithreading allows multiple threads to run concurrently, while exception handling deals with errors in a program.
Multithreading involves running multiple threads simultaneously to improve performance and responsiveness.
Threads share the same memory space but have their own program counter and registers.
Exception handling is a mechanism to handle errors or exceptional situations in a program.
It helps prevent the prog...
I applied via Campus Placement and was interviewed in Apr 2023. There were 3 interview rounds.
C, C++, Java, PHP i can do this programming for coding test
Java is a popular programming language used for developing a wide range of applications.
Java is an object-oriented language.
It is platform-independent and can run on any device with a Java Virtual Machine (JVM).
Java is known for its robustness, security, and scalability.
It is widely used in web development, mobile app development, and enterprise software development.
Method Overloading is the ability to have multiple methods with the same name but different parameters.
Method Overloading is a feature of object-oriented programming.
It allows a class to have multiple methods with the same name but different parameters.
The compiler determines which method to call based on the number and types of arguments passed.
Example: void print(int x), void print(String s), void print(int x, String
An abstract class is a class that cannot be instantiated and is used as a base class for other classes.
An abstract class can have abstract and non-abstract methods.
Abstract methods have no implementation and must be implemented by the derived class.
An abstract class can have constructors and instance variables.
An abstract class can be used to define a common interface for a group of related classes.
Example: Animal is a...
Some of the top questions asked at the AmbitionBox Service Now Developer and Administrator interview -
based on 1 interview
Interview experience
Software Engineer
17
salaries
| ₹0 L/yr - ₹0 L/yr |
Operations Executive
11
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
8
salaries
| ₹0 L/yr - ₹0 L/yr |
Executive
6
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Executive
6
salaries
| ₹0 L/yr - ₹0 L/yr |
Foundit
Timesjobs.com
Indeed
Glassdoor