Skip to content

kujtimh7/assignment2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cisc3130 assignment 2

Instructor: Katherine Chuang
Brooklyn College

Objectives

There are two parts to this assignment, each part should be written in their own file. Please try to use the same names.

Objective 1: Palindrome.java

Implement a function to check if an input is a palindrome. The input could be of any type - character, number, or objects. If the input has different case, for example RACEcar, it should still be considered a palindrome.

A palindrome is same forwards as it is backwards (i.e. 0 -> 1 -> 2 -> 1 -> 0)

Suggested Implementation: Use the Stack interface. You may use any data structure to accomplish the task.

Sample input: ["r", "a", "c", "e", "c", "a", "r"] Assume only numbers or characters

Output: boolean TRUE | FALSE

Objective 2: Merge.java

Merge two sorted lists into one sorted list. Inputs are sorted, you can assume smallest to largest values.

Suggested Implementation: Use the Queue interface. You may use any data structure to accomplish the task.

Sample input: [1,3,5] and [2,4,5,6]

Sample output: [1,2,3,4,5,5,6]


Due date: Wednesday October 30th.

Submission: Please use the Github Classroom link https://classroom.github.com/a/g7GS7vGa

Note there will be no re-submissions or late submissions accepted. I won't have time to grade them.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%