Skip to content Skip to sidebar Skip to footer
Showing posts with the label Algorithm

Calculating The Factorial Without Trailing Zeros Efficiently?

I'm trying to improve the running time of the factorial calculation of the large number. The fi… Read more Calculating The Factorial Without Trailing Zeros Efficiently?

Minimum Set Cover

I would like to solve a minimum set cover problem of the following sort. All the lists contain on… Read more Minimum Set Cover

Average Of Two Strings In Alphabetical/lexicographical Order

Suppose you take the strings 'a' and 'z' and list all the strings that come between… Read more Average Of Two Strings In Alphabetical/lexicographical Order

Divide And Conquer. Find The Majority Of Element In Array

I am working on a python algorithm to find the most frequent element in the list. def GetFreque… Read more Divide And Conquer. Find The Majority Of Element In Array

Recursion: Make Changes With Fewest Coins

I'm studing the data structure and algorithm in python. Here is the classic problem of recursio… Read more Recursion: Make Changes With Fewest Coins

How To Get The Most Represented Object From An Array

I have an array with some objects, and there are several objects that are alike. E.g: fruit = [appl… Read more How To Get The Most Represented Object From An Array