bhan

SF Bay Area & Washington DC

docs.google.com/present/…

Age: 23

Cal Physics and Computer Science 2013

Amazon SDE Intern

NASA Goddard Intern

LBNL/NERSC student assistant

We'd be fools not the ride this strange torpedo all the way out to the end.

Mar
3
awarded Popular Question
Feb
20
awarded Yearling
Jun
27
awarded Famous Question
Apr
8
answered Looking for web-based graph editing framework
Oct
5
asked Stopping an iterator before the end
Jul
20
awarded Supporter
Jul
9
asked Missing pgnuplot
Jun
28
revised Getting a gnuplot output from a script
added 195 characters in body
Jun
27
asked Getting a gnuplot output from a script
Apr
28
awarded Autobiographer
Mar
22
asked Uploading Text File to Input in Html/JS
Mar
19
awarded Great Question
Feb
28
awarded Notable Question
Feb
24
revised Given a number, find the next higher number which has the exact same set of digits as the original number
update
Feb
24
revised Java - How can I most-efficiently sort an array of SomeClass objects by a String field in those objects?
deleted 2 characters in body
Feb
24
awarded Teacher
Feb
24
answered Java - How can I most-efficiently sort an array of SomeClass objects by a String field in those objects?
Feb
22
awarded Favorite Question
Feb
21
awarded Editor
Feb
21
comment Designing a data structure that works in O(logn) time
If the data is already sorted, you can perform a binary search on it by adjusting the indices. IE: set a left = 0, right = length of array, mid = floor(average of left and right). Then if x < mid, adjust right to mid, and recalculate mid using the new values.
1 2