This document contains the solutions to homework assignment #0 submitted by Abdulaziz Alwasel with ID 433101425. It includes 6 questions with the following code snippets:
1. A method to evaluate a polynomial function for a given array of coefficients and x value.
2. No code provided, the answer is 2.
3. A method that rearranges an integer array so that adjacent numbers differ by 1.
4. A method to find the number of common elements between two integer arrays.
5. A method that rearranges an integer array so that negative numbers come before positive numbers.
6. A method that searches for a substring within a string.
This document contains the solutions to homework assignment #0 submitted by Abdulaziz Alwasel with ID 433101425. It includes 6 questions with the following code snippets:
1. A method to evaluate a polynomial function for a given array of coefficients and x value.
2. No code provided, the answer is 2.
3. A method that rearranges an integer array so that adjacent numbers differ by 1.
4. A method to find the number of common elements between two integer arrays.
5. A method that rearranges an integer array so that negative numbers come before positive numbers.
6. A method that searches for a substring within a string.
This document contains the solutions to homework assignment #0 submitted by Abdulaziz Alwasel with ID 433101425. It includes 6 questions with the following code snippets:
1. A method to evaluate a polynomial function for a given array of coefficients and x value.
2. No code provided, the answer is 2.
3. A method that rearranges an integer array so that adjacent numbers differ by 1.
4. A method to find the number of common elements between two integer arrays.
5. A method that rearranges an integer array so that negative numbers come before positive numbers.
6. A method that searches for a substring within a string.