Homework 5 Problem 2
You cannot submit for this problem because the homework's deadline is due.
Description
Detailed description please check the hwk5.pdf file on CANVAS.
Write a program that takes two strings as command-line arguments. Checks whether two given strings s and t are circularshifts of one another.Output ”true” if they are circular rotations, ”false”otherwise.
Format
Name your file as ex2.c
Input
Two strings as command-line arguments
Output
"true" or "false"
Sample 1
Input
ACTGACG TGACGAC
This will be run as (for example)
gcc -O2 -Wall -Wextra -Werror -pedantic -Wno-unused-result -std=c11 -o ex2 ex2.c
./ex2 ACTGACG TGACGAC
Output
true
Note that there counld be other alphabets in the string.
Homework 5
- Status
- Finished
- Problems
- 5
- Open Since
- 2020-07-12 00:00
- DDL
- 2020-07-20 23:59
- Extension
- 48.0 hour(s)