Muhammad Junaid Khalid
074583a2ee
Merge branch 'master' into master
2024-10-16 13:44:27 +05:00
github-actions[bot]
e841605280
docs: update DIRECTORY.md ( #2827 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-14 18:49:11 +05:30
Harshil Shah
c2adc3b1e6
feat: Added Exponential Probability Distribution ( #2780 )
...
* Add Exponential Distribution
* Modified the documentation
* Update Documentation
* Update probability/exponential_dist.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Update probability/exponential_dist.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Update probability/exponential_dist.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Update the files
* Removed the link from documentation
* docs: remove the second brief tag
* Update latex notation
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Update latex notation
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Corrected format issues
* Update probability/exponential_dist.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Update probability/exponential_dist.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Update probability/exponential_dist.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Added more test, formatted with clang-format
* Update files
* Update format issues
* Add more tests
* Added namespaces
---------
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-13 00:09:50 +05:30
mjk22071998
592c0d9005
Comments updated
2024-10-12 15:05:59 +05:00
mjk22071998
aece5a24b3
docs: Documentation updated
2024-10-12 15:04:36 +05:00
Muhammad Junaid Khalid
19dc886089
Merge branch 'master' into master
2024-10-11 12:24:53 +05:00
Nguyen Phuc Chuong
136e6c0ad8
docs, test: Fit bubble_sort into guidelines and enhance bubble sort algorithm ( #2800 )
...
* Update bubble_sort.cpp
* Update bubble_sort.cpp
* Update bubble_sort.cpp
Add latex notation
* Update sorting/bubble_sort.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Update sorting/bubble_sort.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Update bubble_sort.cpp
---------
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-11 09:57:30 +05:30
github-actions[bot]
49ee852d06
docs: update DIRECTORY.md ( #2810 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-11 09:52:18 +05:30
Ashish Kumar Sahoo
5eff2b9e2b
Create Longest_Substring_Without_Repeating_Characters.cpp ( #2761 )
...
* Create Longest_Substring_Without_Repeating_Characters.cpp
* I would like to contribute for sliding window algorithm and this one is one of the famous problem that is asked in interviews.
* Thank you!!.
* Update and rename Longest_Substring_Without_Repeating_Characters.cpp to sliding-window/Longest_Substring_Without_Repeating_Characters.cpp
* This is my contribution towards the sliding window algorithm/s and this is one of the famous problems.
* Thank you.
* Update Longest_Substring_Without_Repeating_Characters.cpp
* I would like to contribute towards the sliding window algorithm in which this is one of the famous problem asked in interviews.
* Thank you.
* Update Longest_Substring_Without_Repeating_Characters.cpp
* Updated certain changes in documentation, this is my contribution towards sliding window algorithm this is one of the famous interview problem.
* Thank you.
* Update Longest_Substring_Without_Repeating_Characters.cpp
* Well documented and tested code for sliding window algorithm.
* Thank you.
* Update and rename Longest_Substring_Without_Repeating_Characters.cpp to Longest_Substring_Without_Repeating_Characters.cpp
* So,I did a small change I added the problem into the others section I think this works fine I guess.
* I would be glad if this can be tagged as hackoctoberfest
* Thank you.
* Update and rename Longest_Substring_Without_Repeating_Characters.cpp to longest_substring_without_repeating_characters.cpp
* I hope I have done the required changes.
* Update longest_substring_without_repeating_characters.cpp
* Added specific edge cases and tests as void tests() and followed the guidelines.
* Update longest_substring_without_repeating_characters.cpp
* I hope I have made the necessary changes required.
* If there are any changes to make I can do that.
* Thank you.
* Update longest_substring_without_repeating_characters.cpp
* I have done the required changes for the include part.
* Thank you.
* Update longest_substring_without_repeating_characters.cpp
added author name
---------
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-10 19:58:50 +05:30
mjk22071998
b172e058f6
clang linted
2024-10-10 17:38:41 +05:00
mjk22071998
5236bd07d1
Merge branch 'master' of https://github.com/mjk22071998/C-Plus-Plus
2024-10-10 17:35:59 +05:00
mjk22071998
e62242eac0
fix: Fixed the case of non binary strings
2024-10-10 17:35:51 +05:00
Muhammad Junaid Khalid
206758b246
Merge branch 'master' into master
2024-10-10 17:18:28 +05:00
github-actions[bot]
34d3568b37
docs: update DIRECTORY.md ( #2804 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-10 17:16:19 +05:30
Muhammad Junaid Khalid
d9113db10e
Merge branch 'TheAlgorithms:master' into master
2024-10-09 19:31:36 +05:00
mjk22071998
47685a5d88
fix: removed unnecessary whitespaces
2024-10-09 19:07:31 +05:00
Ritobroto Kalita
512efd1861
fix: Update documentations and tests for fibonacci.cpp ( #2793 )
...
* Update fibonacci.cpp
* update documentation
* Update documentation
2024-10-09 18:45:12 +05:30
Dhanush S
faff2177c8
feat: add recursive inserstion sort ( #2764 )
...
* added recursive insertion sort algorithm
* Modified the main function and removed user interaction as requested
* Deleted previous file
* Updated insertion_sort.cpp to its original code
* Created insertion_sort_recursive.cpp file
* Updated documentation and structure in insertion_sort_recursive.cpp
* Updated documentation in insertion_sort_recursive.cpp
* chore: remove redundant comment
* chore:Removed unnecssary whitespace
* doc: ease the brief of test
* doc: remove redundant lines from main
* chore:Removed redundant whitespace
---------
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-08 19:34:42 +05:30
mjk22071998
c846d8b270
Documentation added
2024-10-07 21:16:17 +05:00
mjk22071998
846118425b
"Formatting changes and whitespace adjustments in binary_addition.cpp"
2024-10-07 19:06:42 +05:00
mjk22071998
9772468f6e
initial commit of Binary Addition
2024-10-07 19:01:23 +05:00
Muhammad Junaid Khalid
481e5dbb87
Merge branch 'TheAlgorithms:master' into master
2024-10-07 18:49:17 +05:00
Muhammad Junaid Khalid
dd36279e73
feat: Digit Separation Algorithm added ( #2759 )
...
* Digit Separation Algorithm added
* feat: Added namespace greedy_algoriithms
* "Updated digit separation code: added comments and docstrings, changed data types to std::int64_t, and reformatted code."
* feat: Made test function and removed extra whitespaces
* removed some more whitespaces
* Update greedy_algorithms/digit_separation.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* fix: terminate multiline comment
* Update greedy_algorithms/digit_separation.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Update greedy_algorithms/digit_separation.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Update greedy_algorithms/digit_separation.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Update greedy_algorithms/digit_separation.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Corrected test function
* Update greedy_algorithms/digit_separation.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Update greedy_algorithms/digit_separation.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* remove redundant declaration
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Corrected tests
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* file clang linted
* "Moved method implementations from outside to inside class definition"
* fowardOrder to forwardOrder on line 122
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Removed Class scope resolution form digitSeparationReverseOrder function
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* Removed Class scope resolution form digitSeparationForwardOrderfunction
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
* docs: documentation updated
---------
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-07 19:09:23 +05:30
realstealthninja
cffb85a033
Merge branch 'master' into master
2024-10-07 19:04:40 +05:30
deDSeC00720
821d20c33a
feat: LFU (Least frequently used) cache ( #2757 )
...
* feat: add lfu cache
* docs: add comments and explanation to class LFUCache
* test: add tests for class lfu cache
* docs: document namespace and classes
* test: modify tests to check negative numbers
* docs: document template params and class data members
* test: make test func static and move tests in the same func
---------
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-07 19:02:52 +05:30
Nguyen Phuc Chuong
fddedd8864
fix: Adding documentations, tests, and amending algorithm for gcd_of_n_numbers.cpp ( #2766 )
...
* Update gcd_of_n_numbers.cpp
* Update gcd_of_n_numbers.cpp
Reformatting code, comment and test cases, change array data type.
* Update gcd_of_n_numbers.cpp
* Update gcd_of_n_numbers.cpp
* Update gcd_of_n_numbers.cpp
* Update gcd_of_n_numbers.cpp
2024-10-07 18:56:25 +05:30
realstealthninja
6c8305b8b8
Merge branch 'master' into master
2024-10-07 18:52:16 +05:30
Harshil Shah
b957b1dfef
feat: Add hemi-sphere area algorithm ( #2767 )
...
* Add area of hemi-sphere
* Update math/area.cpp
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
---------
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-07 06:15:29 +05:30
mjk22071998
c9cd9a341f
Merge branch 'master' of https://github.com/mjk22071998/C-Plus-Plus
2024-10-06 08:22:48 +05:00
mjk22071998
28f690187a
docs: documentation updated
2024-10-06 08:22:44 +05:00
Muhammad Junaid Khalid
12d8d53bd6
Removed Class scope resolution form digitSeparationForwardOrderfunction
...
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-06 08:03:36 +05:00
Muhammad Junaid Khalid
40ac10334d
Removed Class scope resolution form digitSeparationReverseOrder function
...
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-06 08:03:14 +05:00
Muhammad Junaid Khalid
ba56880806
fowardOrder to forwardOrder on line 122
...
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-06 08:02:08 +05:00
mjk22071998
3f0489232d
"Moved method implementations from outside to inside class definition"
2024-10-06 07:53:29 +05:00
Muhammad Junaid Khalid
051448f7d0
Merge branch 'master' into master
2024-10-06 07:40:19 +05:00
github-actions[bot]
f9fb58fb87
docs: update DIRECTORY.md ( #2771 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-06 08:09:04 +05:30
Muhammad Junaid Khalid
a0f488b0cc
Merge branch 'master' into master
2024-10-06 07:34:51 +05:00
mjk22071998
14274747bd
file clang linted
2024-10-06 07:31:37 +05:00
Amine Ghoussaini
60093d70ab
feat: add duval's algorithm ( #2725 )
...
* feat: Add Duval's algorithm for the lexicographically smallest rotation in a sequence.
* fixes.
* fixes.
2024-10-05 18:22:02 +05:30
Muhammad Junaid Khalid
ef954a8673
Corrected tests
...
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-05 17:22:37 +05:00
Muhammad Junaid Khalid
a585834c95
remove redundant declaration
...
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-05 17:22:04 +05:00
Muhammad Junaid Khalid
87b955b831
Update greedy_algorithms/digit_separation.cpp
...
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-05 16:49:36 +05:00
Muhammad Junaid Khalid
18b65460e0
Update greedy_algorithms/digit_separation.cpp
...
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-05 16:49:24 +05:00
mjk22071998
af077d2494
Corrected test function
2024-10-05 16:46:15 +05:00
Muhammad Junaid Khalid
373e1df601
Update greedy_algorithms/digit_separation.cpp
...
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-05 16:44:09 +05:00
Muhammad Junaid Khalid
5f392b9960
Update greedy_algorithms/digit_separation.cpp
...
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-05 16:43:43 +05:00
Muhammad Junaid Khalid
ad034743ea
Update greedy_algorithms/digit_separation.cpp
...
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-05 16:43:28 +05:00
Muhammad Junaid Khalid
1fb86dbe99
Update greedy_algorithms/digit_separation.cpp
...
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-05 16:41:43 +05:00
realstealthninja
d3edb52ebe
fix: terminate multiline comment
2024-10-05 17:09:48 +05:30
Muhammad Junaid Khalid
cba0eb9603
Update greedy_algorithms/digit_separation.cpp
...
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com >
2024-10-05 16:38:55 +05:00