Tag Archives: Java

Java Data Structure Summary

Data Structure in Java ArrayList — Resizable Array Implementation 1.5x resize if necessary GC vs ARC runtime vs compile time https://stackoverflow.com/questions/7874342/what-is-the-difference-between-objective-c-automatic-reference-counting-and-garb Right shift vs Division 1. faster 2. pure integer 3. no intermediate solution overflow issue (safer, avoid stack overflow) … Continue reading

Posted in CS Research&Application, Uncategorized | Tagged , | Leave a comment

Java Fundamentals and Machine Learning Summary and Resources

1.Inheritance can be defined as the process where one class acquires the properties (methods and fields) of another. With the use of inheritance the information is made manageable in a hierarchical order.   2. If a class inherits a method … Continue reading

Posted in CS Research&Application, Uncategorized | Tagged , , | Leave a comment

Algorithm and Data Structure – Counting Anagrams

Recently I played an algorithm and data structure question which is called Counting Anagrams, its requirement is like: Input 2 abdcghbaabcdij     bcda bbbababaaabbbb     ab Output 2 0 8 6 2 3 4 5 6 9 As first … Continue reading

Posted in CS Research&Application, Uncategorized | Tagged , , | Leave a comment