Skip to content

shrink_task#1

Open
Catreshka wants to merge 1 commit intomainfrom
shrink_task
Open

shrink_task#1
Catreshka wants to merge 1 commit intomainfrom
shrink_task

Conversation

@Catreshka
Copy link
Owner

No description provided.

@busylee999
Copy link

busylee999 commented Nov 7, 2024

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

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


public static String shrink_space_v2(String inputString) {

String result = "";

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

Choose a reason for hiding this comment

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

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

Copy link

@busylee999 busylee999 left a comment

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