![]() |
|
Source Code of Some Well Known Algorithms - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Coding (https://sinister.li/Forum-Coding--71) +--- Thread: Source Code of Some Well Known Algorithms (/Thread-Source-Code-of-Some-Well-Known-Algorithms) |
RE: Source Code of Some Well Known Algorithms - Psycho_Coder - 03-14-2014 Kadane's Algorithm - Maximum Subarray Sum Useful Info :- http://www.hackcommunity.com/Thread-HC-Programming-Quiz-CodeMarathon?pid=179760#pid179760 Language : Python Code :- http://code.hackerearth.com/f4d3c9p RE: Source Code of Some Well Known Algorithms - Psycho_Coder - 03-14-2014 Thread updated and is active again and hence others are requested to contribute
RE: Source Code of Some Well Known Algorithms - rudy - 03-14-2014 (03-14-2014, 02:09 PM)Psycho_Coder Wrote: Thread updated and is active again and hence others are requested to contribute So is this thread just for algorithms? Or, should I just post any code here that I think could be potentially useful to other people as well? EDIT: Nevermind, I should've read the title of the thread. I'm stupid. Lol sorry. RE: Source Code of Some Well Known Algorithms - Psycho_Coder - 03-14-2014 (03-14-2014, 07:25 PM)rudy Wrote:(03-14-2014, 02:09 PM)Psycho_Coder Wrote: Thread updated and is active again and hence others are requested to contribute Just tell me what kind of helpful snippets you might have posted ? I might consider it
RE: Source Code of Some Well Known Algorithms - rudy - 03-14-2014 (03-14-2014, 07:29 PM)Psycho_Coder Wrote:(03-14-2014, 07:25 PM)rudy Wrote:(03-14-2014, 02:09 PM)Psycho_Coder Wrote: Thread updated and is active again and hence others are requested to contribute The only thing I've made that I think might be useful to other people is a 2-dimension vector class in C++, it does fancy vector math (addition/multiplication/division/subtraction, cross product, dot product, stuffs) and things like that, with polar and rectangular coordinates. I made it when I coded my own version of the Atari game Asteroids. Lol. I could totes make it usable in any-dimension though, so like a variable-dimension vector class. That might be more useful. RE: Source Code of Some Well Known Algorithms - Psycho_Coder - 03-15-2014 Please share it with us if you want and briefly explaining how you use them in your codes with example. That would be nice. |