Skip to content

Commit c0f0520

Browse files
committed
l
1 parent caaca9e commit c0f0520

File tree

1,694 files changed

+176440
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,694 files changed

+176440
-0
lines changed

src/main/java/com/ctci/treesandgraphs/CheckBalanced.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.ctci.treesandgraphs;
22

3+
4+
35
/**
46
* Implement a function to check if a binary tree is balanced. For the purposes of this question, a balanced
57
* tree is defined to be a tree such that the heights of the two subtrees of any node never differ by more than one.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
comment: false
2+
coverage:
3+
status:
4+
project:
5+
default:
6+
threshold: 1
7+
informational: true
8+
patch: off
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* text eol=lf
2+
*.bat text eol=crlf
3+
*.png binary
4+
*.key binary
5+
*.jar binary
6+
*.ttf binary
7+
release-notes-* merge=union
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
custom: https://junit.org/sponsoring
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Overview
2+
3+
_Replace the following bullet points with your issue description,
4+
after answering yourself: **"What kind of issue is this?"**_
5+
6+
- ( ) **Question.** This issue tracker is not the place for questions.
7+
If you want to ask how to do something, or to understand why
8+
something isn't working the way you expect it to, please first use Stack
9+
Overflow or Gitter.
10+
https://stackoverflow.com/questions/tagged/junit5
11+
12+
- ( ) **Bug report.** Please provide us the version of JUnit 5 you are
13+
using and, if possible, a failing unit test with your bug report. Don't
14+
forget to describe the rationale for this issue (e.g. expected vs.
15+
actual behavior).
16+
17+
- ( ) **Feature request.** Start by telling us what problem you’re trying
18+
to solve. Often a solution already exists! Please, don’t send pull requests
19+
to implement new features without first getting our support.
20+
21+
## Deliverables
22+
23+
- [ ] ...
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
<!-- Please provide us the version of JUnit 5 you are using and, if possible, a failing unit test with your bug report. Don't forget to describe the rationale for this issue (e.g. expected vs. actual behavior). -->
8+
9+
## Steps to reproduce
10+
11+
<!-- Please insert a code snippet or a link to another repo along with instructions how to reproduce the issue here. The example should be minimal, complete and verifiable (see https://stackoverflow.com/help/mcve). -->
12+
13+
## Context
14+
15+
- Used versions (Jupiter/Vintage/Platform):
16+
- Build Tool/IDE:
17+
18+
## Deliverables
19+
20+
- [ ] ...
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
<!-- Start by telling us what problem you’re trying to solve. Often a solution already exists! Please, don’t send pull requests to implement new features without first getting our support. -->
8+
9+
## Deliverables
10+
11+
- [ ] ...
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Question
3+
about: Please first ask on Gitter or StackOverflow before creating an issue
4+
---
5+
6+
This issue tracker is not the place for questions.
7+
If you want to ask how to do something, or to understand why
8+
something isn't working the way you expect it to, please use Gitter [1] or Stack Overflow [2].
9+
10+
[1] https://gitter.im/junit-team/junit5
11+
[2] https://stackoverflow.com/questions/tagged/junit5
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Overview
2+
3+
<!-- Please describe your changes here and list any open questions you might have. -->
4+
5+
---
6+
7+
I hereby agree to the terms of the [JUnit Contributor License Agreement](https://github.com/junit-team/junit5/blob/002a0052926ddee57cf90580fa49bc37e5a72427/CONTRIBUTING.md#junit-contributor-license-agreement).
8+
9+
---
10+
11+
### Definition of Done
12+
13+
- [ ] There are no TODOs left in the code
14+
- [ ] Method [preconditions](https://junit.org/junit5/docs/snapshot/api/org.junit.platform.commons/org/junit/platform/commons/util/Preconditions.html) are checked and documented in the method's Javadoc
15+
- [ ] [Coding conventions](https://github.com/junit-team/junit5/blob/HEAD/CONTRIBUTING.md#coding-conventions) (e.g. for logging) have been followed
16+
- [ ] Change is covered by [automated tests](https://github.com/junit-team/junit5/blob/HEAD/CONTRIBUTING.md#tests) including corner cases, errors, and exception handling
17+
- [ ] Public API has [Javadoc](https://github.com/junit-team/junit5/blob/HEAD/CONTRIBUTING.md#javadoc) and [`@API` annotations](https://apiguardian-team.github.io/apiguardian/docs/current/api/org/apiguardian/api/API.html)
18+
- [ ] Change is documented in the [User Guide](https://junit.org/junit5/docs/snapshot/user-guide/) and [Release Notes](https://junit.org/junit5/docs/snapshot/user-guide/#release-notes)
19+
- [ ] All [continuous integration builds](https://github.com/junit-team/junit5#continuous-integration-builds) pass
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Main build
2+
description: Sets up JDKs and runs Gradle
3+
inputs:
4+
arguments:
5+
required: true
6+
description: Gradle arguments
7+
default: build
8+
runs:
9+
using: "composite"
10+
steps:
11+
- uses: ./.github/actions/setup-test-jdk
12+
- uses: ./.github/actions/run-gradle
13+
with:
14+
arguments: ${{ inputs.arguments }}
15+
- uses: actions/upload-artifact@v3
16+
if: ${{ always() }}
17+
with:
18+
name: Test Distribution trace files (${{ github.job }})
19+
path: '**/build/test-results/*/trace.json'

0 commit comments

Comments
 (0)