Write a void function that takes in a pointer to the front of a linked list storing a string and CHANGES that string to be upper case code example

Example 1: Use parseInt() in the convertToInteger function so it converts the input string str into an integer, and returns it.

function convertToInteger(str) {
  return parseInt(str);
}

Example 2: Write a function called square_odd that has one parameter. Your function must calculate the square of each odd number in a list. Return a Python 3 list containing the squared values Challenge yourself: Solve this problem with a list comprehension!

nums = [square_odds**2 for square_odds in nums if square_odds%2 != 0]

Tags:

Java Example