Tag Archives: counting

Number of trailing zeros in factorial of an integer

An integer n is given, the task is to find the number of trailing zeros in n! .

Posted in Coding Discussions, Computer Science, Others | Tagged , , , | 2 Comments

Find Sum (i … j) in a list

The problem is to sum the ith to jth element of a given list. The easiest solution runs in time, which starts are the ith index and adds up the numbers in the list until it reaches the jth index. … Continue reading

Posted in Coding Discussions, Computer Science | Tagged , , | Leave a comment

All Combinations Without Repetitions

A method is to generate all Combinations of a set with distinct elements is described, then it’s C Language implementation is presented. Continue reading

Posted in Coding Discussions, Computer Science | Tagged , , , | 4 Comments

r-Permutations With Repetitions

A method is to generate all r-Permutations of a set with distinct elements is described, then it’s C Language implementation is presented. Also a 20 Digit Decimal counter is coded to show a use, which can also be extended to a ‘n’ Digit Decimal counter. Continue reading

Posted in Coding Discussions, Computer Science | Tagged , , , | 8 Comments