Commit Graph

1612 Commits

Author SHA1 Message Date
github-actions
bbd876f2ec updating DIRECTORY.md 2021-02-11 11:19:26 +05:30
anjali1903
6920e7db6f feat: add longest palindromic subsequence algorithm (#1185)
* feat: add longest palindromic subsequence algorithm

* feat: add longest palindromic subsequence algorithm

* feat: add longest palindromic subsequence algorithm

* feat: add longest palindromic subsequence algorithm
2021-02-11 11:19:26 +05:30
Shreyas Sable
6520ffcdc5 cross product of two vectors (#1292)
* cross product of two vectors

* cross product of two mathematical vectors (fixed)

* cross product of two mathematical vectors (fixed)

* updating DIRECTORY.md

* cross product of two mathematical vectors (fixed)

* cross product of two mathematical vectors (fixed)

* cross product of two mathematical vectors (fixed)

* cross product of two vectors (with tests)

* cross product of two mathematical vectors (fixed)

* cross product of two vectors (with example fixed)

* cross product of two vectors

* cross product of two mathematical vectors

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-02-11 11:19:26 +05:30
github-actions
5dfd7d1510 updating DIRECTORY.md 2021-02-11 11:19:26 +05:30
villayatali123
2903d4861f Nth fibonacci number using matrix exponentiation (#1215)
* Nth fibonacci number using matrix exponentiation
Co-authored-by: unknown <villizain6@gmail.com>
2021-02-11 11:19:26 +05:30
ABHISHEK-821005
e371fc259d added a new example to check correctness of the code 2021-02-11 11:19:26 +05:30
ABHISHEK-821005
b2583bb9df Update cut_rod.cpp 2021-02-11 11:19:26 +05:30
ABHISHEK-821005
8c4d4c0dba updated references 2021-02-11 11:19:25 +05:30
ABHISHEK-821005
98eb5ce660 added a new function to improve time complexity
WhatIfAllPricesAreSame(price1,n1) added this function.
2021-02-11 11:19:25 +05:30
ABHISHEK-821005
a363964e05 updated time complexity
if all the prices are same case(o(n)).
2021-02-11 11:19:25 +05:30
ABHISHEK-821005
f74af2943b improved time complexity
if all the price are same then we can do it in o(n).
improved time complexity.
2021-02-11 11:19:25 +05:30
github-actions
e1986f77cd clang-format and clang-tidy fixes for 7293e15a 2021-02-11 11:19:25 +05:30
shubhamamsa
f6eb8e72ed feat: addressed comments for math/modular_division.cpp 2021-02-11 11:19:24 +05:30
github-actions
bbb1b98426 clang-format and clang-tidy fixes for 2ad5420a 2021-02-11 11:19:24 +05:30
github-actions
ea6c7933a6 updating DIRECTORY.md 2021-02-11 11:19:24 +05:30
shubhamamsa
f752084bca feat: Addressed comments for adding modular division algorithm 2021-02-11 11:19:24 +05:30
shubhamamsa
bc6cb2f91f feat: added modular division algorithm 2021-02-11 11:19:24 +05:30
Sagar Pandya
a69051ac53 namespaces added datatype changed for big number documentation improved 2021-02-11 11:14:50 +05:30
David Leal
ecd14b44fd fix: Update copyright notice to 2021 (#1440) 2021-02-11 11:14:50 +05:30
Francesco Urbani
00972e55e3 feat: added highlighting differences in Sudoku Solver (#1438)
* printing out the solved grid with the differences highlighted.

* added documentation to the functions.

* removed #define because code formatter check failed.
2021-02-11 11:14:50 +05:30
Rakshit Raj
2c861b2dd2 feat: Add sorting/count_inversions.cpp (#1425)
* Create count_inversions.cpp

Counts the number of inversions in a list using merge sort. The number of Inversions in a list is the measure of the list's proximity to being sorted in ascending/increasing order.

* Update count_inversions.cpp

- fixed template error on line 156
- an added test case for character array
- an added test case for list type double

* Update sorting/count_inversions.cpp

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

* Update sorting/count_inversions.cpp

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* updating DIRECTORY.md

* clang-format and clang-tidy fixes for b51af5e8

* using `uint64_t` from cstdint header 

and doxygen formatiing

* clang-format and clang-tidy fixes for 047578bb

* Update count_inversions.cpp

* added comments on imports

* clang-format and clang-tidy fixes for 2f65017d

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update count_inversions.cpp

* clang-format and clang-tidy fixes for 5d5cc53e

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update count_inversions.cpp

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update sorting/count_inversions.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update count_inversions.cpp

* clang-format and clang-tidy fixes for 121ce330

* Update sorting/count_inversions.cpp

Co-authored-by: John Law <johnlaw.po@gmail.com>

Co-authored-by: Taj <tjgurwara99@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>
2021-02-11 11:14:50 +05:30
Hashir Hameed Niazi
40eaea4bcc feat: Add Saddleback search (#1432)
* feat: add saddleback search algorithm

* docs: add comments and explaination for saddleback algorithm

* test: add test for saddleback algorithm

* refactor: use size_t instead of int

* refactor: made suggested changes

* updating DIRECTORY.md

* refactor: made suggested changes

* refactor: made suggested changes

* refactor: made suggested changes

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-02-11 11:14:50 +05:30
fedom
4a5310c7ad feat: add 2-3-4-tree implment (#1366)
* feat: add 2-3-4 tree implment

* updating DIRECTORY.md

* docs: fix format issue of tab&space

* fix: fix code format issues

* fix: convert printf() to std::cout

* fix: fix some clang-tidy warnings

* fix: fix clang-tidy warnings of memory owning

* fix: remove use of  std::make_unique which is not support by c++11

* docs: improve documents

* fix: replace fprint with ofstream, and improve docs

* docs: improve docs for including header file

* docs: improve file doces

* fix: convert item type to int64_t, convert node item count type to int8_t

* refactor: Apply suggestions from code review

Add namespaces

Co-authored-by: David Leal <halfpacho@gmail.com>

* docs: remove obsolete comments

Co-authored-by: liuhuan <liuhuan@ainirobot.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-11 11:14:49 +05:30
Ayaan Khan
606ff8b910
Merge pull request #1453 from Panquesito7/configure_probot_stale
feat: Setup Probot Stale app
2021-02-10 11:21:43 +05:30
David Leal
86c8ba3cf4
feat: Setup Probot Stale app 2021-02-09 22:09:38 -06:00
Magdy Sedra
b12dad038c
feat: Added persistent segment tree with lazy propagation (#1445)
* Added persistent segment tree with lazy propagation

* Updated

* Updated

* Updated

* Updated

* Updated

* Updated

* Added a documentation

* Updated

* updating DIRECTORY.md

* clang-format and clang-tidy fixes for 4b6566d2

* Updated

* clang-format and clang-tidy fixes for 6197ba4c

* Update persistent_segment_tree_with_lazy_propagation.cpp

* Updated

* Delete persistent_segment_tree_with_lazy_propagation.cpp

* Updated

* updating DIRECTORY.md

* clang-format and clang-tidy fixes for 81621d83

* Update persistent_seg_tree_lazy_prop.cpp

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-08 11:19:26 -06:00
Saurav Uppoor
eddf37fd6b
fix/test/docs: update variable sizes, add namespace in graph/depth_first_search_with_stack.cpp (#1335)
* fix: add namespace graph and other improvements

* test: add tests

* docs: add documentation thorughout the code

* Apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>

* Add documentation for header files

* docs: improve formatting

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update depth_first_search_with_stack.cpp

Co-authored-by: saurav <sauravUppoor@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2021-02-05 15:37:38 +05:30
Walt
6b4d6c20ff
feat: add new implementation of binary search tree (#1208)
* fix: revamp binary_search_tree.cpp to use generics, oop, and modern c++ features

* fix: remove make_unique from code

* fix: fix some clang-tidy errors in binary_search_tree.cpp

* Move new implementation into new file, restore old file.

* Reset binary_search_tree.cpp to original implementation.

* Add link to new implementation.

* fix: add suggested fixes (see PR)

* Implement comment suggestions.

* Update data_structures/binary_search_tree2.cpp

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* Fix additional comments.

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2021-02-05 15:37:16 +05:30
Sagar Pandya
e813f9b2a6
[docs/test]: Documentation and test in the list_array.cpp (#1375)
* Added introductory documentation in list_array

* documentation for search completed, minor bug fixed in the list_array

* bug fixed in the insert method

* edge case check added in the remove method

* Documentation completed in list_array

* Testing completed in the list_array.cpp

* Bug fixed in the sort method

* test cases improved and minor bug fixed in list_array

* minor allignment changed

* changes in documentation and improvement in the code in list_array

* resolve clang-tidy warning

* link added datatype changed

* namespaces added

* minor documentation changed in list_array.cpp

Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2021-02-05 15:35:44 +05:30
github-actions
28b5b2b829 updating DIRECTORY.md 2021-02-05 09:46:52 +00:00
anjali1903
ade6010d11
feat: add longest palindromic subsequence algorithm (#1185)
* feat: add longest palindromic subsequence algorithm

* feat: add longest palindromic subsequence algorithm

* feat: add longest palindromic subsequence algorithm

* feat: add longest palindromic subsequence algorithm
2021-02-05 15:16:06 +05:30
Shreyas Sable
f4423503a1
cross product of two vectors (#1292)
* cross product of two vectors

* cross product of two mathematical vectors (fixed)

* cross product of two mathematical vectors (fixed)

* updating DIRECTORY.md

* cross product of two mathematical vectors (fixed)

* cross product of two mathematical vectors (fixed)

* cross product of two mathematical vectors (fixed)

* cross product of two vectors (with tests)

* cross product of two mathematical vectors (fixed)

* cross product of two vectors (with example fixed)

* cross product of two vectors

* cross product of two mathematical vectors

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-02-05 15:13:45 +05:30
github-actions
39ba144bb1 updating DIRECTORY.md 2021-02-05 09:43:02 +00:00
villayatali123
f222acde97
Nth fibonacci number using matrix exponentiation (#1215)
* Nth fibonacci number using matrix exponentiation
Co-authored-by: unknown <villizain6@gmail.com>
2021-02-05 15:12:13 +05:30
Ayaan Khan
9820c9cc91
Merge pull request #1388 from ABHISHEK-821005/master
fix: updated datatypes references
2021-02-02 23:57:14 +05:30
Ayaan Khan
e62e94dc2e
Merge pull request #1441 from shubhamamsa/mod_div
feat: added modular division algorithm
2021-01-19 00:56:14 +05:30
github-actions
a4f830b90b clang-format and clang-tidy fixes for 7293e15a 2021-01-18 10:45:57 +00:00
shubhamamsa
7293e15a30 feat: addressed comments for math/modular_division.cpp 2021-01-18 16:14:35 +05:30
github-actions
b9cdab9354 clang-format and clang-tidy fixes for 2ad5420a 2021-01-17 20:44:59 +00:00
github-actions
0e1e441ab3 updating DIRECTORY.md 2021-01-17 20:44:52 +00:00
shubhamamsa
2ad5420a7c feat: Addressed comments for adding modular division algorithm 2021-01-18 02:13:32 +05:30
shubhamamsa
0450f6a179 feat: added modular division algorithm 2021-01-17 23:09:01 +05:30
Ayaan Khan
f4403718ef
Merge pull request #1403 from sagarpandyansit/dsu_efficient
[FEATURE] Documentation improved and make some method efficient in DSU
2021-01-15 22:10:56 +05:30
Sagar Pandya
cb5d854490
minor documentation changed
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-01-15 20:38:15 +05:30
Sagar Pandya
796c44f993 author name added and minor documentation fixed 2021-01-14 20:10:17 +05:30
Sagar Pandya
46b5788298 Readability improved 2021-01-12 14:40:27 +05:30
Sagar Pandya
a9fad9a779 Readability improved respective datatypes improved 2021-01-09 20:55:03 +05:30
Sagar Pandya
344be2cb83 namespaces added datatype changed for big number documentation improved 2021-01-08 15:11:34 +05:30
David Leal
679455c54c
fix: Update copyright notice to 2021 (#1440) 2021-01-07 22:18:38 -06:00
Francesco Urbani
9a78d69083
feat: added highlighting differences in Sudoku Solver (#1438)
* printing out the solved grid with the differences highlighted.

* added documentation to the functions.

* removed #define because code formatter check failed.
2021-01-05 15:10:27 +05:30