-
-
Notifications
You must be signed in to change notification settings - Fork 157
Added Count Good Triplets #545
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
Added Count Good Triplets #545
Conversation
Here's the code health analysis summary for commits Analysis Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change code based on suggestions
|
||
Given an array of integers `arr`, and three integers `a`, `b`, and `c`. You need to find the number of good triplets. | ||
|
||
A triplet `(arr[i], arr[j], arr[k])` is good if the following conditions are true: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace (arr[i], arr[j], arr[k])
to $(arr[i], arr[j], arr[k])$
|
||
### Constraints | ||
|
||
- `3 <= arr.length <= 100` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, change this
|
@ajay-dhangar Done kindly review it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Related Issue
Fix: #437
Description
Added solution for count good triplets under leetcode solution section.
Type of PR
Screenshots / Videos (if applicable)
[Attach any relevant screenshots or videos demonstrating the changes]
Checklist
Additional Context
[Include any additional information or context that might be helpful for reviewers.]
Resources for Guidance
Here are some resources that may be helpful as you contribute to CodeHarborHub:
Resources for DSA Features on Our Site: