Monthly Archives: March 2016

Setup p4merge as a visual diff and merge tool for git Raw

Download and install p4merge Download the perforce visual tool suite from here: http://www.perforce.com/perforce/downloads/index.html Copy only the p4merge.app file into your /Applications/ directory Setup p4merge as a visual mergetool $ git config –global merge.tool p4mergetool $ git config –global mergetool.p4mergetool.cmd \ … Continue reading

Posted in work related | Tagged | Leave a comment

what to think when you write a binary search

Binary search binary search is prety tricky and have a lot hidden dents, here is my summary. Common problem given a non-descending array, find element with value m in the array. below is the classic c code there are several … Continue reading

Posted in algorithm, Uncategorized | Tagged | Leave a comment