Skip to content

Nalluh/CPSC335

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm #1: Change string in source code to see if valid palindrome.


Algorithm #2: edit source code to provide it source file path. This Algorithm works by reading a file that contains the long string array and the array with the city names. The provided text file had all three test cases. When running the code edit the file to only have one test case at a time.

For example, when testing the first case the text file will only contain

array 1a =[ÒsanoaklandrialtofullertonmarcolongbreacoronamodestoclovissimithousandÓ]
array 1b = [ÔbreaÕ, ÔmodestoÕ, ÔclovisÕ, ÔcoronaÕ]

When moving on to check the next test case replace what's in the file with the next case

IE 

array 2a =[ÒmarcopolmonafremontrialtofullertonmarcolongfresnochinoclovissimisalinasÓ]
array 2b = [ÔfullertonÕ, ÔchinoÕ, ÔfremontÕ, ÔfresnoÕ]

About

Projects done for class will be left here

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages