Answer:
Program that removes all spaces from the given input
Explanation:
// An efficient Java program to remove all spaces
// from a string
class GFG
{
// Function to remove all spaces
// from a given string
static int removeSpaces(char []str)
{
// To keep track of non-space character count
int count = 0;
// Traverse the given string.
// If current character
// is not space, then place
// it at index 'count++'
for (int i = 0; i<str.length; i++)
if (str[i] != ' ')
str[count++] = str[i]; // here count is
// incremented
return count;
}
// Driver code
public static void main(String[] args)
{
char str[] = "g eeks for ge eeks ".toCharArray();
int i = removeSpaces(str);
System.out.println(String.valueOf(str).subSequence(0, i));
}
}
Answer:

Explanation:
The power needed to make the escalator working is obtained by means of the Work-Energy Theorem:




The mechanical efficiency of the escalator is:


The efficiency of a transformer is mainly dependent on a)- Core losses
Hope this helps! :)
Answer:
The time complexity will be "O(n log n)".
Explanation:
- Many realistic Quick sort implementations choose a randomized special edition. The time complexity variable O(n Logn) was predicted in the randomized edition.
- Throughout the randomized version, probably the most disgusting case is also conceivable, but by far the worst scenario for something like a given pattern does not exist as well as randomized Quick sort performs well throughout the practice.