Filter interviews by
I applied via Naukri.com and was interviewed in Mar 2022. There were 2 interview rounds.
Const variables are immutable and can be used to declare values that won't change during runtime. String replace replaces a substring with another in a string.
Const variables are declared using the 'const' keyword and cannot be reassigned.
String replace can be used to replace a substring with another in a string.
Example: const pi = 3.14; str := 'Hello World'; newStr := strings.Replace(str, 'World', 'Golang', -1);
Exampl...
REST API can be implemented in both Golang and other languages using HTTP methods and JSON data format.
In Golang, we can use third-party packages like Gorilla Mux and net/http to create REST APIs.
We can define routes and handlers for each HTTP method like GET, POST, PUT, DELETE.
We can use JSON encoding and decoding to send and receive data in REST API calls.
In other languages, we can use frameworks like Flask in Python...
Go does not have traditional OOP concepts like classes and inheritance, but it does support some OOP principles.
Go supports encapsulation through the use of structs and methods.
Polymorphism can be achieved through interfaces.
Inheritance is not supported, but composition can be used instead.
Go also supports abstraction through the use of interfaces and packages.
I applied via Naukri.com and was interviewed before Oct 2020. There were 4 interview rounds.
I appeared for an interview before Dec 2020.
Round duration - 90 Minutes
Round difficulty - Medium
2 coding questions and 20 mcq
You are given a grid containing oranges where each cell of the grid can contain one of the three integer values:
Find the minimum time required to rot all fresh oranges in a grid.
Use Breadth First Search (BFS) to simulate the rotting process.
Track the time taken to rot all oranges and return -1 if any fresh oranges remain.
Handle edge cases like no fresh oranges or all oranges already rotten.
Consider using a queue to efficiently process adjacent oranges.
Ensure to update the grid with the new state of oranges after each second.
Given a natural number N
, return the sum of all its proper divisors.
A proper divisor of Y
is defined as a number X
such that X < Y
and Y % X = 0
.
T...
Calculate the sum of proper divisors of a given natural number.
Iterate from 1 to sqrt(N) and check for divisors
If a divisor is found, add it to the sum and also add N/divisor if it is not the same as divisor
Return the sum as the result
Round duration - 45 Minutes
Round difficulty - Medium
Technical interview
Given an array ARR
consisting of non-negative integers, rearrange the numbers to form the largest possible number. The digits within each number cannot be changed.
Rearrange the array elements to form the largest possible number by concatenating them.
Sort the array elements in a custom comparator function to get the largest number.
Convert the sorted array elements to strings and concatenate them to form the final number.
Handle cases where the numbers have the same prefix by comparing the concatenated forms.
Tip 1 : Be clear about whatever you have mentioned in resume, don't mention buzz words, because interviewer can go in depth
Tip 2 : Along with DS and Algo, if you have 3-4 months experience or internship experience, then be ready to answer scenario based technical questions like scaling the application that you developed and design concepts that can be used for improving
Tip 3 : Last but most important tip is to be calm through out the whole process ,don't loose hope if any round didn't go well ,if you have explained your thought process there is still chance to procees to next round so keep preparating for next rounds.
Tip 1 : Keep it one page resume and mention keywords which align with your technical and personal competencies.
Tip 2 : Mention 3-4 projects in the order that , project which you can explain best should be at top,then the next, and so on.
I applied via Superset and was interviewed before Aug 2021. There were 2 interview rounds.
Aptitude consists of general thinking, pseudo code, and game aptitude
Delegate responsibilities and establish clear communication channels for team members to handle situations in my absence.
Assign clear roles and responsibilities to each team member
Establish communication channels and protocols for emergencies
Ensure team members have access to necessary resources and information
Provide training and support to team members to handle unexpected situations
Regularly check in with team membe...
I applied via Company Website and was interviewed in May 2021. There was 1 interview round.
A table in SQL is a collection of related data organized in rows and columns.
Tables are used to store data in a structured way.
Each table has a unique name and consists of columns and rows.
Columns define the type of data that can be stored in them.
Rows represent individual records in the table.
Tables can be queried using SQL commands to retrieve, insert, update or delete data.
I applied via LinkedIn and was interviewed in May 2021. There were 4 interview rounds.
SDLC stands for Software Development Life Cycle, which is a process used to design, develop, and test software.
SDLC is a structured approach to software development.
It consists of several phases including planning, analysis, design, implementation, testing, and maintenance.
Each phase has its own set of deliverables and objectives.
The goal of SDLC is to produce high-quality software that meets the needs of the end-users...
I applied via Campus Placement and was interviewed in Jan 2021. There were 3 interview rounds.
Java has eight primitive datatypes and reference types.
Java has eight primitive datatypes: byte, short, int, long, float, double, char, and boolean.
Reference types include classes, interfaces, arrays, and enums.
Primitive datatypes are passed by value, while reference types are passed by reference.
Autoboxing and unboxing allow primitive datatypes to be used as reference types and vice versa.
The datatypes in C++ include fundamental types (int, float, bool), derived types (arrays, pointers, references), and user-defined types (classes, structures, unions).
Fundamental types: int, float, bool
Derived types: arrays, pointers, references
User-defined types: classes, structures, unions
Python has several built-in datatypes including integers, floats, strings, booleans, lists, tuples, and dictionaries.
Integers are whole numbers without decimals
Floats are numbers with decimals
Strings are sequences of characters
Booleans are either True or False
Lists are ordered collections of items
Tuples are ordered, immutable collections of items
Dictionaries are unordered collections of key-value pairs
I appeared for an interview before Dec 2020.
Round duration - 45 minutes
Round difficulty - Hard
All mcqs should answer with in time limit should have a lot of practice to solve in exam
You have two water jugs with capacities X
and Y
liters respectively, both initially empty. You also have an infinite water supply. The goal is to determine if it is possible to...
The Water Jug Problem involves determining if a specific amount of water can be measured using two jugs of different capacities.
Start by considering the constraints and limitations of the problem.
Think about how the operations allowed can be used to reach the target measurement.
Consider different scenarios and test cases to come up with a solution.
Implement a function that takes the capacities of the jugs and the targe...
Round duration - 60 minutes
Round difficulty - Easy
Easy and just basic questions very easy round
Given two sparse matrices MAT1
and MAT2
of integers with dimensions 'N' x 'M' and 'M' x 'P' respectively, the goal is to determine the resulting matrix produced by their multipl...
Implement a function to multiply two sparse matrices and return the resulting matrix.
Create a function that takes two sparse matrices as input and returns the resulting matrix after multiplication.
Iterate through the non-zero elements of the matrices to perform the multiplication efficiently.
Ensure to handle the sparse nature of the matrices to optimize the multiplication process.
Consider the constraints provided to en...
Tip 1 : preapre core subjects
Tip 2 : be confident and answer clearly
Tip 3 : be strong with projects
Tip 1 : good projects in ml and ai
Tip 2 : practical experience
TCS
Accenture
Wipro
Cognizant