Paytm
Armee Technology Services Interview Questions and Answers
Q1. Cube Sum Pairs Problem Statement
Given a positive integer N
, find the number of ways to express N
as a sum of cubes of two integers, A
and B
, such that:
N = A^3 + B^3
Ensure you adhere to the following conditio...read more
Q2. BST Iterator Problem Statement
You are tasked with creating a class named BSTIterator
that acts as an iterator for the inorder traversal of a binary search tree. Implement the following functions:
BSTIterator(...read more
Q3. Integer to Roman Conversion
Given an integer N
, convert it to its corresponding Roman numeral representation. Roman numerals comprise seven symbols: I, V, X, L, C, D, and M.
Example:
Input:
N = 2
Output:
II
Exp...read more
Q4. Colorful Knapsack Problem
You are given a set of 'N' stones, each with a specific weight and color. The goal is to fill a knapsack with exactly 'M' stones, choosing one stone of each color, so that the total we...read more
Q5. How to set equal spacing between childs of constraint layout?
To set equal spacing between childs of constraint layout, use the chain style property.
Create a chain of the views that need equal spacing using the chain style property.
Set the chain style to spread inside the constraint layout.
Adjust the margins of the views to control the spacing.
Use the layout_constraintHorizontal_chainStyle or layout_constraintVertical_chainStyle attribute to set the chain style.
Example: app:layout_constraintHorizontal_chainStyle="spread"
Q6. What is context? Type of context in android, what are the differences
Context in Android refers to the current state of the application. There are different types of context in Android with varying scopes and lifecycles.
Context is an abstract class in Android that allows access to application-specific resources and classes.
There are three main types of context in Android: Application Context, Activity Context, and Service Context.
Application Context is tied to the lifecycle of the application and is available throughout the application.
Activity...read more
Q7. How garbage collector works?
The garbage collector in Android automatically manages memory by reclaiming unused objects.
Garbage collector identifies objects that are no longer referenced by the program.
It frees up memory occupied by these objects, making it available for future use.
The process involves marking objects as reachable or unreachable, and then reclaiming memory from unreachable objects.
Garbage collection can be triggered automatically or manually using System.gc().
Example: If an object is cre...read more
Q8. Why dagger is required?
Dagger is required for dependency injection in Android development.
Dagger helps in managing dependencies and reduces boilerplate code.
It provides compile-time safety and improves code readability.
Dagger also helps in testing and modularizing the codebase.
It is widely used in Android development for building scalable and maintainable apps.
Q9. DSA: Put zeroes to end in an array
Move all zeroes to the end of an array of strings.
Iterate through the array and keep track of the count of zeroes encountered.
Swap non-zero elements with the first zero encountered to move zeroes to the end.
Interview Process at Armee Technology Services
Top Android Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month