Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/top 100 week 1 #765

Merged
merged 8 commits into from
Aug 10, 2023
Merged

Feat/top 100 week 1 #765

merged 8 commits into from
Aug 10, 2023

Conversation

YanceyOfficial
Copy link
Owner

Before submitting a pull request, please make sure the following is done:

  1. Fork the repository and create your branch from master.

  2. Run yarn in the repository root.

  3. If you've fixed a bug or added code that should be tested, add tests!

  4. Ensure the test suite passes (yarn test). Tip: yarn test --watch TestName is helpful in development.

  5. Run yarn test-prod to test in the production environment. It supports the same options as yarn test.

  6. If you need a debugger, run yarn debug-test --watch TestName, open chrome://inspect, and press "Inspect".

  7. Format your code with prettier (yarn prettier).

  8. Make sure your code lints (yarn lint). Tip: yarn linc to only check changed files.

  9. If you haven't already, complete the CLA.

@YanceyOfficial YanceyOfficial merged commit c5b041c into master Aug 10, 2023
3 checks passed
@YanceyOfficial YanceyOfficial deleted the feat/top-100-week-1 branch August 10, 2023 12:13
let j = start2 + cmp::min(n, k / 2) - 1;

if arr1[i] > arr2[j] {
return find_kth(arr1, start1, end1, arr2, j + 1, end2, k - (j - start2 + 1));

Check warning

Code scanning / clippy

unneeded return statement Warning

unneeded return statement
} else {
(arr[mid] + arr[mid - 1]) as f64 / 2.0
return find_kth(arr1, i + 1, end1, arr2, start2, end2, k - (i - start1 + 1));

Check warning

Code scanning / clippy

unneeded return statement Warning

unneeded return statement
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.

1 participant