07 2014 档案

amazon 汇总 算法
摘要:7. write a function cn random an array.public class xiaodan_random { Random rand = new Random(); public void swap(int[] array, int i, int j){ ... 阅读全文

posted @ 2014-07-28 13:37 brave_bo 阅读(214) 评论(0) 推荐(0)

amazon 汇总
摘要:1. what is hash table? how to implement in C? how to deal withconflicts? (linkedlist, linear probing, double hashing...etc)什么是hashtable, hash function... 阅读全文

posted @ 2014-07-27 14:15 brave_bo 阅读(220) 评论(0) 推荐(0)

amazon 设计 5 hotel and restaurant reservation system
摘要:there I write down the restaurant system.public class TimeSpan { String start; String end;}public class Table { int tableid; String type; ... 阅读全文

posted @ 2014-07-27 07:09 brave_bo 阅读(448) 评论(0) 推荐(0)

amazon 设计 4 vending machine
摘要:http://ydtech.blogspot.com/2010/06/state-design-pattern-by-example.html 阅读全文

posted @ 2014-07-26 03:46 brave_bo 阅读(742) 评论(0) 推荐(0)

amazon 设计 番外篇 1.
摘要:Design a phone book.package phonebook;public class PhoneBookEntry { private String name; private int number; public PhoneBookEntry(String... 阅读全文

posted @ 2014-07-25 07:22 brave_bo 阅读(270) 评论(0) 推荐(0)

amazon 设计 2 Furniture
摘要:public interface Furniture { public void stressTest(); public void fireTest();}public abstract class Chair implements Furniture {public abstract... 阅读全文

posted @ 2014-07-24 06:11 brave_bo 阅读(233) 评论(0) 推荐(0)

amazon.设计1. tic tac toe
摘要://不觉中 已经全力找工作好久好久了。大概有1年半了。身心疲惫,不要放弃。曙光快来了。1.tic tac toe//http://www.ntu.edu.sg/home/ehchua/programming/java/JavaGame_TicTacToe.html 类似相关棋牌坐标对战游戏 一通百... 阅读全文

posted @ 2014-07-24 04:28 brave_bo 阅读(498) 评论(0) 推荐(0)

系统设计题杂
摘要:what happens when you type in a URL in browserIn an extremely rough and simplified sketch, assuming the simplest possible HTTP request, no proxies and... 阅读全文

posted @ 2014-07-22 02:01 brave_bo 阅读(189) 评论(0) 推荐(0)

longest common substring
摘要:public static String lcs(String a, String b){ int aLen = a.length(); int bLen = b.length(); if(aLen==0 || bLen==0) return ""; if(a.char... 阅读全文

posted @ 2014-07-20 10:35 brave_bo 阅读(124) 评论(0) 推荐(0)

导航