Python Program to calculate the frequency of the character of the given string is given below. In this Program we used python dictionaries where key is the character of string and its value is the occurrence of that character in the given string.
C++ Program to find the majority element of the array is given below. The element which occurs more than n/2 times in the array is said to be the majority element. Approach is very simple count the occurrence of each element and then check if it is occurred more than n/2 times or not.
C++ Program to find the element occurring Odd number of times is given below. Approach is simple we use the concept of hashing where element would be key and the its frequency (number of occurrence) will be value. Then we will check if the value to the key is odd or not.
Find the first index of the repeated element in an array of integers, i.e., an element that occurs more than once and whose index of first occurrence is smallest.
First Come First Served (FCFS) is an Operating System process scheduling algorithm. It is non-preemptive in scheduling algorithm. Jobs are executed on first come, first serve basis. It is easy to understand and implement but poor in performance, as average wait time is high.
C++ Program to find out the common elements in the given three arrays is given below. Approach is simple we hashed the occurrence of the elements of first two arrays and then we will match if the element of array 3 is present in array 1 and array 2 or not.
C++ Program to reverse the words in a given string is given below. This question has been asked many times in interview questions.
Algorithm to convert a Sorted array into a Balanced BST (Binary Search Tree ) along with its implementation in C++ is given below. Balanced tree is a in which difference between the height of left subtree and right subtree will never exceed 1.
A positive integer of n digit is called an Armstrong number of order n if "abcd=pow(a,n)+pow(b,n)+pow(c,n)+pow(d,n)"
1. In functional testing tester tests that how well the system performs.
2. Functional testing is based on client requirements.
3. In functional testing we test the application against the business requirements.
4. Functional testing validates the behavior of an application
5. Functional testing covers Unit testing, Integration testing, Sanity testing, Smoke testing, Regression testing and so on.