반응형
반응형
본문 바로가기

자료구조3

단일 연결 리스트를 이용하여 키보드로 입력받은 영문자를 저장하고 특정 영문자를 삭제하는 리스트 ADT를 구현하시오. 단일 연결 리스트를 이용하여 키보드로 입력받은 영문자를 저장하고 특정 영문자를 삭제하는 리스트 ADT를 구현하시오. ◦ 다음 연산을 지원한다. - addLastNode(list, e) : 원소 e를 추가한다. - searchRemove(list, e) : 특정 원소 e를 리스트에서 삭제한다. - print(list) : list의 모든 원소를 공백없이 출력한다. ※ 특정 원소 e가 없다면 화면에 에러 메시지 "not find" 출력하고, 해당 연산을 무시한다. ◦ 입력에 대한 설명 (아래 입출력 예시 참조) - 각 연산의 내용이 한 줄에 한 개씩 입력되고, 한 개의 줄에는 연산의 종류, 원소 순서로 입력된다. - 연산의 종류: 연산 이름의 맨 앞 영문자가 대문자 A, D, P로 주어진다. - 원소: 영문.. 2022. 4. 29.
For this problem you must define a simple interface NumTrackerInterface and two implementations of the interface, For this problem you must define a simple interface NumTrackerInterface and two implementations of the interface, Tracker1 and Tracker2. a. Define a Java interface named NumTrackerInterface. A class that implements this interface must keep track of both the sum and the count of numbers that are submitted to it through its add method, and provide getters for the sum, the count, and the average of.. 2022. 3. 12.
Create Java classes that implement the FigureInterface interface: Create Java classes that implement the FigureInterface interface: a. Square - constructor accepts a single argument of type double which indicates the length of a side of the square. b. RightTriangle - constructor accepts two arguments of type double that indicate the lengths of the two legs. c. IsoscelesTriangle - constructor accepts two arguments of type double that indicate the height and the.. 2022. 3. 12.

반응형