issues Search Results · repo:bobocode-projects/java-fundamentals-exercises language:Java
Filter by
51 results
(77 ms)51 results
inbobocode-projects/java-fundamentals-exercises (press backspace or delete to remove)test doesn t trigger resizing due to less items added than needed (DEFAULT_CAPACITY for java.utilArrayList is 16).
possible fix:
@Test
@Order(12)
void addShouldResizeDefaultCapacityWhenArrayIsFull() { ...
Ohonovskiy
- Opened on Nov 24, 2024
- #203
https://github.com/bobocode-projects/java-fundamentals-exercises/blob/c6617faeed3172e7be803db8748808c642e50c3e/0-0-intro/src/test/java/com/bobocode/intro/ExerciseIntroductionTest.java#L26
For me this ...
kolomiec
- 2
- Opened on Nov 10, 2023
- #183
The broken code:
public static T extends BaseEntity boolean hasDuplicates(List T entities, T targetEntity) {
return entities.stream()
.map(BaseEntity::getUuid)
...
obaibula
- Opened on Apr 11, 2023
- #169
The corrupted code:
@Override
public boolean contains(T element) {
requireNonNull(element);
Node T current = head;
if(!isEmpty()){
while (current.next != null){ ...
obaibula
- Opened on Apr 10, 2023
- #168
The next broken code is accepted:
@Override
public T remove(int index) {
checkIndex(index, size);
if (index == 0) {
return removeHead();
} else if (index == size ...
obaibula
- Opened on Apr 7, 2023
- #167
The broken code:
private void addAsHead(Node T newNode) {
newNode.next = head;
head = newNode;
}
Please consider the following example:
LinkedList Integer list = new LinkedList (); ...
obaibula
- Opened on Apr 7, 2023
- #166
It seems that the task description or test may be incorrect or unclear.
The regular expression \b(\w+)\s\1\b matches two consecutive instances of the same word separated by a single whitespace
character ...
obaibula
- Opened on Mar 30, 2023
- #164
I refer to the findLastWord() and findFirstWord() methods.
If you add the string ......... to the end of the note.txt file like this, the regex from the branch completed won t
pass the tests, which is ...
obaibula
- Opened on Mar 30, 2023
- #163
The accepted corrupted code:
@SuppressWarnings( unchecked )
public void resizeTable(int newCapacity) {
Node K, V [] newTable = new Node[newCapacity];
for (int i = 0; i table.length; ...
obaibula
- Opened on Mar 17, 2023
- #162
The containsValues() s tests accept this wrong solution.
This solution doesn t work if in the bucket s element are more than one Node.
@Override public boolean containsValue(V value) { return Arrays.stream(table) ...
obaibula
- Opened on Mar 16, 2023
- #161

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.