Top 10 Algorithms for Coding Interview
The following are top 10 algorithms related topics for coding interviews. As understanding those concepts requires much more effort, this list below only serves as an introduction. They are viewed from a Java perspective. The topics that are covered include: String/Array/Matrix, Linked List, Tree, Heap, Graph, Sorting, Recursion vs. Iteration, Dynamic Programming, Bit Manipulation, Probability, Combinations and Permutations, and other interesting problems. I highly recommend you to read "Simple Java" first, if you need a brief review of Java basics. 1. String/Array/Matrix First of all, String in Java is a class that contains a char array and other fields and methods. Without code auto-completion of any IDE, the following methods should be remembered. toCharArray() //get char array of a String Arrays.sort() //sort an array Arrays.Read full article from Top 10 Algorithms for Coding Interview
No comments:
Post a Comment