Filter interviews by
Duration was of 2 hours on hackerrank
Queue can be implemented using two stacks. Enqueue operation is O(1) and dequeue operation is O(n).
Create two stacks, stack1 and stack2
For enqueue operation, push the element onto stack1
For dequeue operation, if stack2 is empty, pop all elements from stack1 and push onto stack2. Pop the top element from stack2
Repeat step 3 until all elements are dequeued
Time complexity: Enqueue - O(1), Dequeue - O(n)
Top trending discussions
I applied via Referral and was interviewed in Mar 2022. There were 3 interview rounds.
Streams are a sequence of data elements made available over time. There are different types of streams.
Byte Streams
Character Streams
Buffered Streams
Data Streams
Object Streams
Print Streams
File Streams
Network Streams
posted on 17 Oct 2024
I applied via Campus Placement and was interviewed in Sep 2024. There was 1 interview round.
Data refers to facts, statistics, or information collected for analysis or reference.
Data is raw, unprocessed information.
It can be in the form of numbers, text, images, or any other format.
Examples include customer names, product prices, and sales figures.
Data can be structured (organized in a specific way) or unstructured (not organized).
Preprocessed data is data that has been cleaned, transformed, and organized for analysis or modeling.
Preprocessed data is often used in machine learning and data analysis to improve the accuracy and efficiency of models.
Common preprocessing steps include removing missing values, scaling features, and encoding categorical variables.
Examples of preprocessing techniques include normalization, standardization, one-hot enco
Info refers to data or knowledge that provides details or context about a specific topic or subject.
Info can be in the form of facts, statistics, or explanations.
It helps to understand a topic better or make informed decisions.
Examples of info include news articles, research papers, and educational resources.
Use SQL INSERT INTO SELECT statement to copy data from 2 tables and paste into a 3rd table.
Use INSERT INTO SELECT statement to copy data from 2 tables and paste into a 3rd table.
Specify the columns you want to copy from each table in the SELECT statement.
Make sure the columns in the SELECT statement match the columns in the 3rd table where you are pasting the data.
Reverse a string using any programming language
Use built-in functions like reverse() or slice() in languages like Python or JavaScript
Iterate through the string in reverse order and append each character to a new string
Use a stack data structure to push each character onto the stack and then pop them off to reverse the string
I applied via Naukri.com and was interviewed in Jul 2024. There were 2 interview rounds.
Reverse array of strings
Iterate through the array and swap elements from start to end
Use two pointers, one at the beginning and one at the end, and swap elements until they meet
Reverse a given string
Use built-in functions like reverse() or loop through the string in reverse order
Create a new string and append characters from the original string in reverse order
Convert the string to an array of characters, reverse the array, and then join it back into a string
Calculate sum of all elements in a given array of strings
Iterate through the array and convert each element to integer before adding to sum
Handle edge cases like empty array or non-numeric elements
Return the final sum after iterating through all elements
posted on 18 Jun 2024
Count occurrences of a letter in a string.
Iterate through each character in the string and count occurrences of the specified letter.
Use a hashmap to store the count of each letter.
Handle both uppercase and lowercase letters to ensure accurate counting.
posted on 23 Aug 2024
I applied via campus placement at National Institute of Technology (NIT), Karnataka and was interviewed in Jul 2024. There was 1 interview round.
Question based on array string linkedlist
posted on 11 Jan 2025
Coding Rount
DSA Round + Puzzle
SQL + Project Discussion
JS
posted on 29 Nov 2024
Basics of python , java ,oops, dbms
Software Engineer
150
salaries
| ₹2.2 L/yr - ₹8.5 L/yr |
Software Developer
112
salaries
| ₹2 L/yr - ₹8 L/yr |
Devops Engineer
60
salaries
| ₹2.4 L/yr - ₹8.2 L/yr |
Java Developer
48
salaries
| ₹2.9 L/yr - ₹6 L/yr |
Softwaretest Engineer
42
salaries
| ₹3 L/yr - ₹6.5 L/yr |
TCS
Infosys
Wipro
HCLTech