In my opinion, it would be appropriate to post here provided that you can sufficiently describe your algorithm without looking at source code. This is something akin to "what is the complexity of Djikstra's algorithm?" Where you can, with relative ease, describe how the algorithm works without appealing to source code.
If your question is about the complexity of a specific implementation of the algorithm then I would suggest that it is not so appropriate for this site and one of the others (i.e. Computer Science) is likely more appropriate. Since you mention specifically your Python code, this site (math stackexchange) is likely not the best place for it.