Filter interviews by
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.
LinkedIn interview questions for popular designations
Get interview-ready with Top LinkedIn Interview Questions
Yes, there are several software testing frameworks available.
Software testing frameworks provide a structured approach to testing software applications.
They offer a set of guidelines, tools, and libraries to automate and streamline the testing process.
Some popular software testing frameworks include Selenium, JUnit, TestNG, and Cucumber.
Selenium is widely used for web application testing, while JUnit and TestNG are com...
The best protocol to store images is JPEG.
JPEG is a widely used image compression format.
It provides a good balance between image quality and file size.
JPEG supports millions of colors and is suitable for photographs and complex images.
Other protocols like PNG and GIF have their own advantages but may not be as efficient for storing images.
JSON is a lightweight data interchange format used to store and transmit data in a readable format.
JSON uses key-value pairs to represent data.
It is language-independent and easy to understand.
JSON data types include strings, numbers, booleans, arrays, and objects.
Example: {"name": "John", "age": 25}
JSON can be used with various programming languages and APIs.
Kill all processes using JAVA with one liner command.
Use the 'pkill' command with the '-f' option to match the process name
Combine it with the 'pgrep' command to get the process IDs of JAVA processes
Use a loop to kill each process by its ID
TOP and PS are commands used in Unix-like operating systems to display information about running processes. TOP is called TOP because it shows the top processes consuming system resources.
TOP is an interactive command that continuously updates the process list, while PS displays a snapshot of the current processes.
TOP provides real-time information about CPU usage, memory usage, and other system statistics, while PS pr...
XSS attacks involve injecting malicious scripts into web pages, while SQLi attacks involve manipulating database queries. Prevention includes input validation and parameterized queries.
XSS attacks involve injecting malicious scripts into web pages to steal data or perform actions on behalf of the user
Prevention methods for XSS attacks include input validation, output encoding, and using Content Security Policy (CSP)
SQL...
Automated testing involves using software tools to execute tests, while manual testing is performed by humans.
Automated testing is faster and more efficient than manual testing.
Automated testing can be used to perform repetitive tasks and regression testing.
Manual testing allows for exploratory testing and human judgment.
Automated testing requires initial setup and maintenance of test scripts.
Both types of testing have
The number of ways to parenthesize a boolean expression to evaluate to true can be found using dynamic programming.
Use dynamic programming to count the number of ways to parenthesize the expression.
Consider all possible ways to split the expression into subexpressions.
Keep track of the number of ways each subexpression can evaluate to true.
Combine the results of subexpressions to get the total number of ways to parenth
Top trending discussions
Some of the top questions asked at the LinkedIn interview -
The duration of LinkedIn interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 40 interviews
Interview experience
based on 183 reviews
Rating in categories
Trust and Safety Specialist
73
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
65
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
59
salaries
| ₹0 L/yr - ₹0 L/yr |
Content Reviewer
37
salaries
| ₹0 L/yr - ₹0 L/yr |
Account Director
31
salaries
| ₹0 L/yr - ₹0 L/yr |
Microsoft Corporation
Amazon