📣 独立日限时特惠: VIP通行证立减$68
楼主: tianz
跳转到指定楼层
上一主题 下一主题
收起左侧

Uber phone+onsite

🔗
温家小猫 2015-10-28 04:31:05 | 只看该作者
全局:
亲,竟然是你!!!我就猜是不是你,看了你的id我肯定了 你太牛了!我真自愧不如!你也一定知道我是谁~~
回复

使用道具 举报

🔗
spiritrhy 2015-11-5 08:58:54 | 只看该作者
全局:
楼主能讲下uber eat的设计思路吗?要求是。。?
回复

使用道具 举报

🔗
smallpig1988 2015-11-5 10:12:40 | 只看该作者
全局:
lZ能讲下怎么weighted 生成随机数吗,多谢
回复

使用道具 举报

🔗
spiritrhy 2015-11-5 12:54:48 | 只看该作者
全局:
tianz 发表于 2015-7-21 14:43
fe是bar raiser 在公司呆了2年多。主要让我介绍一个我自己的项目 要把architecture画下来。我觉得重点是 ...

介绍自己项目是自己选项目介绍还是他指定呢
回复

使用道具 举报

🔗
 楼主| tianz 2016-1-11 05:32:00 | 只看该作者
全局:
spiritrhy 发表于 2015-11-5 00:54
介绍自己项目是自己选项目介绍还是他指定呢

自己项目
回复

使用道具 举报

🔗
bobzhang2004 2016-1-11 10:52:32 | 只看该作者
全局:
DIMfang 发表于 2015-8-22 21:18
public static void main(String[] args) {
            
            String[] a1 = {"this", ",", "is", "a", "word ...

为什么不直接用两个指针,一前一后的扫描呢?不是单词就跳过
回复

使用道具 举报

🔗
tbian 2016-1-11 12:23:29 | 只看该作者
全局:
什么叫做 service 多 deep
回复

使用道具 举报

🔗
bobzhang2004 2016-2-8 05:42:23 | 只看该作者
全局:
楼主可以具体说说 design一个uber eat,的要求吗?这个是什么?楼主怎么做的?
回复

使用道具 举报

🔗
bobzhang2004 2016-2-13 09:57:08 | 只看该作者
全局:
tianz 发表于 2015-7-21 13:48
excel这题蛮standard
一开始的时候只需要实现insert和get。看网上有很多种解法。比较普遍的是HashMap. 不 ...

请问formula是自己定义的一个class,还是存为string?
回复

使用道具 举报

🔗
bobzhang2004 2016-2-13 10:06:07 | 只看该作者
全局:
excel 的更新得递归更新吧
  1. public class Excel {
  2.         class Formula {
  3.         }
  4.        
  5.         class Cell {
  6.                 int value;
  7.                 ArrayList<Cell> parents;
  8.                 ArrayList<Cell> children;
  9.                 Formula formula;
  10.                 public Cell(int v) {
  11.                         value = v;
  12.                         parents = new ArrayList<Cell>();
  13.                         children = new ArrayList<Cell>();
  14.                 }
  15.         }
  16.        
  17.         HashMap<Integer, HashMap<Integer, Cell>> data = new HashMap<Integer, HashMap<Integer, Cell>>();
  18.         public void setValue(int row, int column, int value) {
  19.                 if (!data.containsKey(row)) {
  20.                         data.put(row, new HashMap<Integer, Cell>());
  21.                 }
  22.                 if (!data.containsKey(column)) {
  23.                         data.get(row).put(column, new Cell(value));
  24.                 } else {
  25.                         data.get(row).get(column).value = value;
  26.                         // recursively change the value of its children here
  27.                 }
  28.         }


  29.         public Integer getValue(int row, int column) {
  30.                 if (!data.containsKey(row) || !data.get(row).containsKey(column)) {
  31.                         return null;
  32.                 } else {
  33.                         return (Integer)data.get(row).get(column).value;
  34.                 }
  35.         }
  36. }
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表