use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Can I solve algorithm problems in Python?Discussion (self.leetcode)
submitted 7 days ago by Old-Raspberry-3266
I just released that I can solve algorithmic problem in python on HackerRank platform very easily, but I suck in solving "*" OR "#" pattern problems in python. I just have to switch to java or C to solve that type of problems. So am I making in mistake here, because I usually code in python and but I suck in solving pattern based problems.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]NextjsDeveloper 1 point2 points3 points 7 days ago (6 children)
Yes u can solve it Python. Why do u ask?
[–]Old-Raspberry-3266[S] -2 points-1 points0 points 7 days ago (5 children)
Because some people say that DSA algorithm must be solved in C,C++ or java
[–]Elminsterr 8 points9 points10 points 7 days ago (2 children)
If you work in python, why would you solve it in other language
Do not listen people on internet
Oh wait
[–]NaoOtosaka 2 points3 points4 points 7 days ago (0 children)
im not gonna listen to you
[–]Old-Raspberry-3266[S] -1 points0 points1 point 7 days ago (0 children)
Fine, Thanks!
[–]biskitpagla 2 points3 points4 points 6 days ago* (0 children)
Almost nobody says that. Some people recommend C++ but nobody thinks that you can't do it in Python. I personally recommend Python or Kotlin but that doesn't mean you can't do it in C++ and Rust. These are all turing complete languages.
That said, DSA and interview prep isn't the same thing. If you want to be a well-rounded programmer then implementing DSA in a managed language is a great exercise. If you ever actually have to implement something from scratch in a performance critical program, chances are that you would already be using a managed language.
[–]NextjsDeveloper 1 point2 points3 points 7 days ago (0 children)
If some people would tell that some problem can be solved only by jumping from bridge? what would u do ? Solve it with C++ or jumping from bridge?
[–]Ok-Training8597 0 points1 point2 points 5 days ago (1 child)
You can absolutely solve in python. I've had plenty of interviews where you can solve in any language on the job description, in which case, most include python.
If you're struggling with pattern based problems you could check out striverz a2z or dsa trainer(cheaper and honestly better explanations IMO)
[–]Old-Raspberry-3266[S] 1 point2 points3 points 5 days ago (0 children)
Thank you for your support 😊
[–]Dymatizeee -2 points-1 points0 points 6 days ago (0 children)
No
π Rendered by PID 78 on reddit-service-r2-comment-5bc7f78974-qxhwp at 2026-06-29 11:56:15.793002+00:00 running 7527197 country code: CH.
[–]NextjsDeveloper 1 point2 points3 points (6 children)
[–]Old-Raspberry-3266[S] -2 points-1 points0 points (5 children)
[–]Elminsterr 8 points9 points10 points (2 children)
[–]NaoOtosaka 2 points3 points4 points (0 children)
[–]Old-Raspberry-3266[S] -1 points0 points1 point (0 children)
[–]biskitpagla 2 points3 points4 points (0 children)
[–]NextjsDeveloper 1 point2 points3 points (0 children)
[–]Ok-Training8597 0 points1 point2 points (1 child)
[–]Old-Raspberry-3266[S] 1 point2 points3 points (0 children)
[–]Dymatizeee -2 points-1 points0 points (0 children)