TheAlgorithms

TheAlgorithms

Open Source resource for learning Data Structures & Algorithms and their implementation in any Programming Language

Member Since 4 years ago

India

Experience Points
0
follower
Lessons Completed
0
follow
Best Reply Awards
32
repos
Jun
23
8 hours ago
started
started time in 15 minutes ago
Activity icon
fork

Grace1128 forked TheAlgorithms/Python

⚡ All Algorithms implemented in Python
Grace1128 MIT License Updated
fork time in 16 minutes ago
started
started time in 24 minutes ago
started
started time in 31 minutes ago
Activity icon
fork

ZHANGzhonglin2 forked TheAlgorithms/Python

⚡ All Algorithms implemented in Python
ZHANGzhonglin2 MIT License Updated
fork time in 55 minutes ago
started
started time in 1 hour ago
Activity icon
fork

DeeptiTeragunti forked TheAlgorithms/Python

⚡ All Algorithms implemented in Python
DeeptiTeragunti MIT License Updated
fork time in 1 hour ago
started
started time in 1 hour ago
pull request

foo290 pull request TheAlgorithms/C-Plus-Plus

foo290
foo290

feat: add Sublist Search Algorithm

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

started
started time in 1 hour ago
started
started time in 1 hour ago
open pull request

Swastyy wants to merge TheAlgorithms/C-Plus-Plus

Swastyy
Swastyy

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

Swastyy
Swastyy

Yep, thanks for pointing out.

pull request

Swastyy merge to TheAlgorithms/C-Plus-Plus

Swastyy
Swastyy

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

Activity icon
fork

HZongLin forked TheAlgorithms/Python

⚡ All Algorithms implemented in Python
HZongLin MIT License Updated
fork time in 1 hour ago
pull request

ayaankhan98 merge to TheAlgorithms/C-Plus-Plus

ayaankhan98
ayaankhan98

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

open pull request

ayaankhan98 wants to merge TheAlgorithms/C-Plus-Plus

ayaankhan98
ayaankhan98

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

ayaankhan98
ayaankhan98

observe the pattern of execution of what you have written. See if the first test cases passes then program control will go inside the first if block and there it prints passed and after printing this, program control will come out of the first if block and it again gets a print command which will print failed, Meaning for a single test it will print both passed as well as failed which does not makes any sense. Hope you got it.

started
started time in 1 hour ago
open pull request

Swastyy wants to merge TheAlgorithms/C-Plus-Plus

Swastyy
Swastyy

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

Swastyy
Swastyy
pull request

Swastyy merge to TheAlgorithms/C-Plus-Plus

Swastyy
Swastyy

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

pull request

Swastyy merge to TheAlgorithms/C-Plus-Plus

Swastyy
Swastyy

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

open pull request

Swastyy wants to merge TheAlgorithms/C-Plus-Plus

Swastyy
Swastyy

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

Swastyy
Swastyy

Initially I wrote the "failed" thing inside the else block but it was showing warnings then I searched over internet on how to remove these warnings. I saw this article https://clang.llvm.org/extra/clang-tidy/checks/readability-else-after-return.html where its removing else to remove the warnings.

open pull request

ayaankhan98 wants to merge TheAlgorithms/C-Plus-Plus

ayaankhan98
ayaankhan98

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

ayaankhan98
ayaankhan98

It shoudl be like

void test() {
    cout << "Running predefined tests...\n";
    assert(count_of_number_of_ciphers_in_factorial_n(871) == 215);
    assert(count_of_number_of_ciphers_in_factorial_n(977) == 242);
...............
............... 
..............// write some more tests covering corner cases
................
...............
    std::cout << "Test Passed...!\n";
}
pull request

ayaankhan98 merge to TheAlgorithms/C-Plus-Plus

ayaankhan98
ayaankhan98

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

started
started time in 1 hour ago
open pull request

ayaankhan98 wants to merge TheAlgorithms/C-Plus-Plus

ayaankhan98
ayaankhan98

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

ayaankhan98
ayaankhan98

whether the tests passes or not, in both cases Failed will be displayed, as it is priting unconditionally.

pull request

ayaankhan98 merge to TheAlgorithms/C-Plus-Plus

ayaankhan98
ayaankhan98

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

open pull request

ayaankhan98 wants to merge TheAlgorithms/C-Plus-Plus

ayaankhan98
ayaankhan98

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

ayaankhan98
ayaankhan98
 * @return count Number of ciphers in `n!`.
pull request

ayaankhan98 merge to TheAlgorithms/C-Plus-Plus

ayaankhan98
ayaankhan98

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

open pull request

ayaankhan98 wants to merge TheAlgorithms/C-Plus-Plus

ayaankhan98
ayaankhan98

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

ayaankhan98
ayaankhan98
 * @param n Number for which `n!` ciphers are returned
pull request

ayaankhan98 merge to TheAlgorithms/C-Plus-Plus

ayaankhan98
ayaankhan98

Created count_of_trailing_ciphers_in_factorial_n.cpp

Description of Change

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes: