Page 1 of 12
1 2 3 12

Coding Questions

Amdocs Coding Questions Solved | Question 3 | Codewindow.in

Question : In this task you will get an array of strings that contains words you are required to return a map will contain each unique word as a key and the number of occurrences of each word as a value. Example:Given the following array of strings:“hello”, “world”, “this”, “is”, “this”, “hello”you will return:“hello”,2“world”,1“this”,2“is”,1 Solution …

Amdocs Coding Questions Solved | Question 3 | Codewindow.in Read More »

Amdocs Coding Questions Solved | Question 2 | Codewindow.in

Question : In this task you are requested to find if the sum of two numbers in a given array equals to a given sum. If such numbers exist you should return them as a tuple, if not, you should return -1. Example:[1,3,6,8,9]And the following sum is: 17The function should return: (8,9) (9,8) Solution : …

Amdocs Coding Questions Solved | Question 2 | Codewindow.in Read More »

Amdocs Coding Questions Solved | Question 1 | Codewindow.in

Question : In this task, you are requested to merge two lists into a sorted list (sorting should be in an ascending order). The function should also remove any duplicated numbers.The function should also remove any duplicated numbers.The function should return the new sorted list. Example:list1 : [-1,1,3,5,7,9]list2: [-2,2,3,4,5,6] The function should return:[-2,-1,1,2,3,4,5,6,7,8,9]Note: assume the …

Amdocs Coding Questions Solved | Question 1 | Codewindow.in Read More »

Accenture Coding Question | Next Letter | CodeWindow

Next Letter The function accepts two characters ‘ch1’ and ‘ch2’ as the argument. ‘ch1’ and ‘ch2’ are alphabetical letters. Implement the function to find and return the next letter so that distance between ch1 and ch2. While counting distance if you exceed the letter ‘z’ then count the remaining distance starting from the letter ‘a’. …

Accenture Coding Question | Next Letter | CodeWindow Read More »

Accenture Coding Question | Superior Array Element | CodeWindow

Superior Array Element In an array, a superior element is one that is greater than all elements to its right. the rightmost element will always be considered as a superior element. Here, the function accepts an integer array ‘arr’ and its length ‘n’. Implement the function to find and return the number of superior element …

Accenture Coding Question | Superior Array Element | CodeWindow Read More »

Accenture Coding Question | String Palindrome | CodeWindow

String Palindrome Write a function to find if the given string string is palindrome or not. Return 1 if the input string is a palindrome, else return 0. Input specification:Input 1: A string of characters. Output Specification:0 or 1 depending on whether the string is a palindrome or not. Example 1:Input 1: level Output: 1Explanation:The …

Accenture Coding Question | String Palindrome | CodeWindow Read More »