Skip to content

shrink_task#1

Open
Catreshka wants to merge 1 commit into
mainfrom
shrink_task
Open

shrink_task#1
Catreshka wants to merge 1 commit into
mainfrom
shrink_task

Conversation

@Catreshka

Copy link
Copy Markdown
Owner

No description provided.

@busylee999

busylee999 commented Nov 7, 2024

Copy link
Copy Markdown

А для чего тут модуль app?) частью задания как раз является создать java модуль как один модуль внутри gradle проекта :-) давай поправим

модуль task1 должен быть чистым java модулем (сейчас это тоже android application модуль)


public static String shrink_space_v2(String inputString) {

String result = "";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

для оптимизации тут стоит использовать StringBuilder так как иначе в строке 21 у тебя каждый раз будет создаваться новая строка соот-но будет накладно по памяти

import static org.junit.Assert.*;

public class ExampleUnitTest {
@Test

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а чего так густо? :-)

@busylee999 busylee999 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужно поправить комментарии

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants