Search Results

Searching for: big O notation

Individual Exercises

0 / 50

Complete the following function. When given aString, return True if it ends in "ly". Return False otherwise.

0 / 50

Complete the following function. Given aString, return the first half of characters in that string (the string "woohoo" yields "woo")....

0 / 75

Complete the following function. Given aString, return a copy of aString where any character next to a star (*) and all stars themselves...

0 / 50

Given an outside string of length 4, such as "(())", and an inside string, return a new string where the inside is squeezed in the middle...

0 / 10

Consider a linear search as shown below.

int linearSearch(int w, int[] num) { // linear search code here } 

Assume you call this method...