Posts

Showing posts from November, 2016
Design a method to find the frequency of occurrences of any given word in a book . What if we were running this algorithm mUltiple times? if(word== book.word) while book.next != null Given two straight line segments (represented as a start point and an end point)' compute the point of intersection, if any. x0 y0 x1 y1 a0 b0 a1 b1 imperative programming vs functional "compute the point of intersection" what does it mean for two line segments to intersect === different slopes   OR they have the same slopes which means they better be the same line Point intersection(Point start1, Point end1, Point start2, Point end2){ if(start1.x > end1.x) swap(start1, end1) if (start2.x > end2.x) swap(start2, end2);   (make sure things are referring from same reference location if(start1.x > start2.x){     swap the x's and y's compute lines case parallel lines = > must have same y intersept otherwise we can n...
Percentile is way more informative than average accessible and transparent integrate geographies timeframes content areas cases and case load