i
Amdocs
Filter interviews by
I was interviewed in Aug 2021.
Round duration - 90 Minutes
Round difficulty - Medium
This was an online coding round where we had 2 questions to solve under 90 minutes . Both the questions were of easy to medium difficulty .
You are given an array NUMS
consisting of N integers and an integer K. Your task is to determine the maximum sum of an increasing subsequen...
This was a preety good DP-problem . I struggled a bit initially on finding the DP transition but on carefully observing the constraints of the problem , I figured that a O(N^2*K) DP solution will also pass the Test Cases .
Steps :
1) Initiliase a DP array dp[n][k+1] . Store -INF in all cells initally.
2) Let dp[i][j] store the answer for an array of length i and a subsequence of length j
3) Now, for every i , dp[i][1]=arr[...
Given a string STR
consisting of lowercase English letters, identify the first non-repeating character in the string and return it. If no such characte...
Approach :
1) Make a count array and initialize all characters by -1, i.e., all considered as absent.
2) Traverse the given string, and the value of count[x] will be the index of ‘x’ if ‘x’ appears only once. Else, the value is going to be either -1 or -2.
3) Now, traverse the count array and check if the ith character occurs only once (count[i] has a positive value) and appears before the current result, then update the ...
Round duration - 60 Minutes
Round difficulty - Medium
This round consisted of questions from DS/Algo , OOPS and Operating Systems primarily usage of some basic UNIX commands .
You have a string 'STR' of length 'N'. Your task is to implement the atoi function, which converts the string into an integer. If the string does not contain any numbers, the funct...
This was a pure implementation based problem where I was tested on how well can I figure out all the edge cases and code the problem in a production ready manner.
Steps :
1) First of all check if the string is empty , if it is then simply return 0
2) Remove all the spaces from the string
3) Handle the signs '+' and '-' .
4) Handle cases of overflow(if ans>INT_MAX/10 or ans'7' or ans==INT_MIN/10 and s[i]>'8')
5) If sign...
Answer :
1) Runtime polymorphism is also known as dynamic polymorphism or late binding. In runtime polymorphism, the function call is resolved at run time.
2) In contrast, to compile time or static polymorphism, the compiler deduces the object at run time and then decides which function call to bind to the object.
3)In C++, runtime polymorphism is implemented using method overriding.
4) Function overriding is t...
Answer :
1) A friend function is a function that is specified outside a class but has the ability to access the class members’ protected and private data.
2) A friend can be a member’s function, function template, or function, or a class or class template, in which case the entire class and all of its members are friends.
Uses of Friend Functions :
1) In special cases when a class’s private data needs to be acc...
Answer :
1) ls -> Lists files in current directory
2) cd -> Change directory to tempdir
3) mkdir -> Make a directory called graphics
4) rmdir -> Remove directory (must be empty)
5) cp -> Copy file into directory
Round duration - 30 Minutes
Round difficulty - Easy
This is a cultural fitment testing round .HR was very frank and asked standard questions. Then we discussed about my role.
Answer :
a) It is an IT company that caters to the telecommunication domain. The business involved in the telecommunication domain is interesting and can widen your chances of switching into various fields be it in software, hardware or networking profiles. Also, Amdocs carries a good brand name in its domain.
b) Amdocs employees get to enjoy a positive and happy work environment.
c) It is truly an employee friendly organ...
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 applied via Campus Placement and was interviewed before Nov 2022. There were 5 interview rounds.
50 Marks medium questions
2 Coding and 1 Sql question
I applied via Campus Placement and was interviewed before Nov 2022. There were 3 interview rounds.
I was interviewed in May 2021.
Round duration - 90 Minutes
Round difficulty - Medium
This was an online coding round where we had 2 questions to solve under 90 minutes . Both the questions were of easy to medium difficulty .
You are provided with an array/list ARR
of length N
containing only 0s and 1s. Your goal is to determine the number of non-empty subarrays where the numbe...
Approach :
1) Convert all 0's to -1's .
2) Now , the questions boils down to finding the number of subarrays with sum=0
3) This is a very standard problem which can be solved in O(N) using Hashing .
4) Maintain a Hash Map which keeps a track of all the prefix sums encountered so far
5) Maintain an answer variable and at each step do : ans+=map[prefixSum]
6) Finally return ans
Determine if an array contains a Pythagorean triplet by checking whether there are three integers x, y, and z such that x2 + y2 = z2 within the array.
The first lin...
Approach :
1) I solved it in O(N^2) approach .
2) Sort the array
3) Initially map all the elements of the array to their index in a Hash Map or a Hash Set
4) Now , run 2 for loops and for every x^2 + y^2 ,check if there exists a z^2 s.t x^2+y^2=z^2 and the index of z^2 is different than both the indices of x and y
Round duration - 70 Minutes
Round difficulty - Medium
I was asked to solve 3 preety basic DSA questions in this round and discuss their respective time complexities and then we moved onto OOPS where the interviewer asked me some questions related to JAVA as well as C as I had mentioned both of them in my Resume . At the end , I was asked to write a simple SQL query to join two tables . Overall this round was preety intense and I tried to give my best .
Determine if a given string 'S' is a palindrome, considering only alphanumeric characters and ignoring spaces and symbols.
The string 'S' should be evaluated in a case...
Approach 1 :
1) Initialise a string named rev with the given string .
2) Reverse the string rev.
3) Now, if s is a palindrome then we would have rev==s , return true if rev==s and false otherwise
TC : O(N) where N=length of the string
SC : O(1)
Approach 2(Using Two Pointers) :
1) Keep pointer i=0 and j=n-1 where n=length of the string
2) Run a loop till i<=j and check if s[i]==s[j] for the condition of palindrome
3) If at an...
Identify if the provided integer 'N' is a Fibonacci number.
A number is termed as a Fibonacci number if it appears in the Fibonacci sequence, where each number is the sum of...
Approach :
Using Recursion :
1) Create a recursive function (int fib(int n) ) which takes the number of terms n of the Fibonacci Series
2) Base Case : if(n<=1) return n;
3) Recurrence Relation : fib(n)=fib(n-1)+fib(n-2)
4) Optimise the above code using memoisation i.e., if(dp[n]!=0)return dp[n] and fianlly store the answer into dp[n]
5) Traverse the dp array and print the output.
TC : O(n)
SC : O(n)
Without using Recur...
Given an integer 'N', your task is to print all the prime numbers that lie within the range from 2 to 'N' (inclusive).
Integer N
Prime numbers printe...
Approach 1 (Without using Sieve of Eratosthenes) :
1) For every number from 2 to n check if is prime or not .
2) The check prime function which checks if a number is prime or not can be implemented in O(N^1/2) complexity by running a loop from i= 2 toi= N^1/2 and then checking if N%i==0 or not , if N%i==0 simply return false else return true
TC : O(N^3/2)
SC : O(1)
Approach 2 (Using Sieve of Eratosthenes) :
1) In...
Answer :
1) Garbage Collection in Java is a process by which the programs perform memory management automatically.
2) The Garbage Collector(GC) finds the unused objects and deletes them to reclaim the memory.
3) In Java, dynamic memory allocation of objects is achieved using the new operator that uses some memory and the memory remains allocated until there are references for the use of the object.
4) When there are ...
Answer :
1) Static variables are initialized only once.
2) The compiler persists with the variable till the end of the program.
3) Static variables can be defined inside or outside the function.
4) They are local to the block.
5) The default value of static variables is zero.
6) The static variables are alive till the execution of the program.
Here is the syntax of static variables in C language,
...
Answer :
1) In object-oriented programming, a singleton class is a class that can have only one object (an instance of the class) at a time.
2) After first time, if we try to instantiate the Singleton class, the new variable also points to the first instance created.
3) So whatever modifications we do to any variable inside the class through any instance, it affects the variable of the single instance created and is visib...
SELECT A.ID_Name, B.ID_Name
FROM A
INNER JOIN B ON A.ID=B.ID;
Round duration - 30 Minutes
Round difficulty - Easy
This was a typical HR round with some standard Behavioral questions like my interests, weaknesses, strengths, family background, are you willing to relocate or travel , why Amdocs, CEO of Amdocs etc.
Answer :
a) It is an IT company that caters to the telecommunication domain. The business involved in the telecommunication domain is interesting and can widen your chances of switching into various fields be it in software, hardware or networking profiles. Also, Amdocs carries a good brand name in its domain.
b) Amdocs employees get to enjoy a positive and happy work environment.
c) It is truly an employee friendly organ...
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.
Amdocs interview questions for designations
I applied via Campus Placement and was interviewed before Jun 2021. There were 3 interview rounds.
Moderate level questions based on arrays and strings
Get interview-ready with Top Amdocs Interview Questions
I applied via campus placement at Oriental Institute of Science and Technology, Bhopal and was interviewed before Sep 2022. There were 5 interview rounds.
Question level were average
Four coding questions in which two is of SQL queries.
Average level
I applied via Approached by Company and was interviewed before Jul 2021. There were 4 interview rounds.
This consists of aptitude,reasoning,coding qiestions,sql queries in hirepro platform
I applied via campus placement at Centre for Development of Advanced Computing (CDAC) and was interviewed before Jul 2022. There were 4 interview rounds.
Hired from College -
Quantitative, Logical, Verbal Ability and 1 code
I applied via Campus Placement and was interviewed in Apr 2021. There were 3 interview rounds.
Singleton pattern is a design pattern that restricts the instantiation of a class to one object.
Used when only one instance of a class is needed throughout the application
Provides a global point of access to the instance
Implemented using a private constructor and a static method to return the instance
Example: Database connection, Logger, Configuration settings
Static variable is a variable that retains its value even after the function execution is completed.
Declared with static keyword
Memory is allocated once and shared among all instances of the class or function
Can be accessed without creating an object of the class
Query for deleting data from a database table.
Use the DELETE statement followed by the table name.
Add a WHERE clause to specify the condition for deleting specific rows.
Be careful when deleting data as it cannot be recovered.
Example: DELETE FROM customers WHERE customer_id = 1234;
Five commonly used Linux commands
ls - list directory contents
cd - change directory
mkdir - make directory
rm - remove files or directories
grep - search for a pattern in a file
Program to check if a string is a palindrome or not.
Remove all spaces and convert to lowercase for case-insensitive comparison.
Compare the first and last characters, then move towards the center until all characters have been compared.
If all characters match, the string is a palindrome.
If any characters do not match, the string is not a palindrome.
Time complexity refers to the amount of time taken by an algorithm to run as the input size increases.
It measures the efficiency of an algorithm.
It is usually expressed in Big O notation.
An algorithm with a lower time complexity is more efficient than one with a higher time complexity.
Garbage collection in Java is an automatic memory management process.
It frees up memory by removing objects that are no longer in use.
It is performed by the JVM in the background.
It helps prevent memory leaks and improves performance.
There are different types of garbage collectors in Java, such as Serial, Parallel, CMS, and G1.
Example: int[] arr = new int[1000]; arr = null; // Garbage collector will remove the array fr
I applied via Approached by Company and was interviewed before Jul 2022. There were 3 interview rounds.
General apti questions of train, mass velocity, family relations, logical reasoning, quantitative analysis etc
Top trending discussions
4 Interview rounds
based on 116 reviews
Rating in categories
Software Developer
7.7k
salaries
| ₹4.9 L/yr - ₹17 L/yr |
Software Engineer
1.9k
salaries
| ₹4 L/yr - ₹16 L/yr |
Softwaretest Engineer
1.7k
salaries
| ₹3 L/yr - ₹13.5 L/yr |
Functional Test Engineer
1.2k
salaries
| ₹3.6 L/yr - ₹12 L/yr |
Associate Software Engineer
1k
salaries
| ₹3.2 L/yr - ₹12 L/yr |
TCS
IBM
Infosys
Wipro