Filter interviews by
I applied via Approached by Company and was interviewed in Dec 2022. There were 5 interview rounds.
Find the 2nd largest element in an array of strings.
Sort the array in descending order
Access the element at index 1 to get the 2nd largest element
To get the top view of a binary tree, we need to find the nodes that are visible when looking at the tree from the top.
Start from the root node and assign it a horizontal distance of 0.
Traverse the tree using a queue and keep track of the horizontal distance of each node.
For each horizontal distance, only keep the node with the smallest level in the result.
Repeat the process for left and right child nodes, updating the
NotificationCenter is a system that enables communication between different parts of an application.
NotificationCenter allows components of an application to communicate without having direct references to each other.
It uses the observer pattern where objects register themselves as observers for specific notifications.
Notifications can be posted to the NotificationCenter with optional data.
Observers can then receive an...
Design a Twitter feed using SOLID principles
Separate classes for each responsibility (Single Responsibility Principle)
Use interfaces to define behavior and allow for easy swapping of implementations (Open/Closed Principle)
Dependency Injection to decouple components and make testing easier (Dependency Inversion Principle)
Liskov Substitution Principle to ensure derived classes can be substituted for their base classes wi...
Find the first occurrence of a given number in a sorted array.
Use binary search to efficiently find the first occurrence of the number.
Keep track of the index of the first occurrence as you search through the array.
Return the index of the first occurrence once found.
Top trending discussions
I applied via Approached by Company and was interviewed in Oct 2024. There were 2 interview rounds.
Write a program to print first and last letters of words alternatively from am list
OOPs stands for Object-Oriented Programming. It is based on four main pillars: Inheritance, Encapsulation, Abstraction, and Polymorphism.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: class B extends class A.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: using private access modifiers to restrict access to certain data.
Abstract...
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
Structs are value types and passed by value, while classes are reference types and passed by reference.
Structs are used for small, simple data types like coordinates or colors.
Classes are used for more complex data types that require inheritance or reference semantics.
Structs are copied when passed around, while classes are passed by reference.
Structs are stack allocated, while classes are heap allocated.
View Model Scope determines whether a ViewModel should be scoped to an activity or a fragment.
View Model scoped to activity: shared between all fragments within the activity
View Model scoped to fragment: specific to that fragment only
Use activity scope for data shared across fragments, fragment scope for fragment-specific data
I was interviewed in Apr 2024.
I applied via Approached by Company
I applied via Recruitment Consulltant and was interviewed in Jan 2024. There was 1 interview round.
A high order function is a function that can take other functions as parameters or return functions as results.
High order functions can be used to create more flexible and reusable code.
They allow for functions to be passed as arguments, making code more modular.
Examples include map, filter, and reduce functions in functional programming.
ConstraintLayout is the most efficient layout to use on Android.
Allows for flat view hierarchy
Handles complex layouts efficiently
Supports responsive design
Provides tools for optimizing layouts
Answers to questions related to IOS development concepts.
Delegate and protocol are used for communication between objects in IOS. Delegate is a design pattern that allows one object to send messages to another object when a specific event occurs. Protocol is a set of methods that a class can implement to provide a specific behavior.
MVC is a design pattern used in IOS development. It separates the application into three...
MVC is a design pattern that separates an application into three interconnected components: Model, View, and Controller.
Model represents the data and business logic of the application
View is responsible for displaying the data to the user
Controller acts as an intermediary between the Model and View, handling user input and updating the Model and View accordingly
MVC promotes separation of concerns and modularity, making...
I applied via LinkedIn and was interviewed before Jan 2024. There was 1 interview round.
Interview experience
Computer Scientist
433
salaries
| ₹21.2 L/yr - ₹70 L/yr |
Technical Consultant
290
salaries
| ₹11.9 L/yr - ₹30 L/yr |
Software Engineer
261
salaries
| ₹8.5 L/yr - ₹26.8 L/yr |
Computer Scientist 2
226
salaries
| ₹30 L/yr - ₹101 L/yr |
Senior Technical Consultant
190
salaries
| ₹12.5 L/yr - ₹45 L/yr |
Salesforce
Oracle
Microsoft Corporation
Amazon