Daily Archives: October 29, 2012

3sum issue

public class Solution {    public ArrayList<ArrayList<Integer>> threeSum(int[] num) {        // Start typing your Java solution below        // DO NOT write main() function        ArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>();        if( num == null || num.length == 0 )        {            return result;        }        … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

javascript bind

Method = ( function() { return { bind : function( method, context ) { var argCopy = []; for( i = 2; i arguments.length; i++ ) { argCopy.push( arguments[i] ); } method.apply( context, argCopy ); } }; } )(); Package … Continue reading

Posted in front end | Tagged , | Leave a comment

Top 20 Core Java Interview questions answers asked in Investment Bank

http://javarevisited.blogspot.com/2011/04/top-20-core-java-interview-questions.html http://javarevisited.blogspot.sg/2011/10/how-substring-in-java-works.html http://javarevisited.blogspot.com/2011/03/10-interview-questions-on-singleton.html http://javarevisited.blogspot.com/2011/06/comparator-and-comparable-in-java.html

Posted in interview | Tagged | Leave a comment