传说中的谷歌招聘委员会成员之一,从幕后走出来,教你学系统设计!


一亩三分地论坛

 找回密码
 获取更多干活,快来注册
Babeltime游戏工作室招工程师、美术和策划
Tubi TV招安卓、前端和机器学习工程师
把贵司招聘信息放这里
查看: 2534|回复: 2
收起左侧

苏宁北美研发总部R&D Center 热乎乎的面经,真是难

[复制链接] |试试Instant~ |关注本帖
francisyang 发表于 2014-11-6 07:13:32 | 显示全部楼层 |阅读模式

2015(10-12月) 分析|数据科学类 本科 全职@Suning - 网上海投 - 技术电面 |Other

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看,没有帐号?获取更多干活,快来注册

x
一分钟前,做完Phone Interview。热乎乎的。啥都不说,直接上干货。
1. 面试官很nice,直接开始说题目。. 1point3acres.com/bbs
2. 面试官很牛逼,一眼就把bug看出来,打的我直冒汗。
3. 最后一道题是leetcode上的原题稍微改了一下。
解法是,扫一遍长字符串,纪录每一个包含短字符的String 长度,返回最短那个即可。

求人品,求Offer。

1. Write a function/method that takes two string s and t and return true if t is a proper substring of s. You cannont use any library.
for example s= "abcde", t = "bcd", returns true
if t = "bce" returns false. You are not supposed to use any library.
s = "ababac"
t = "abac"

2. THis is a test of basic data structure, you can use java collection and is encouraged to.
Again, given a string s and t, return true if all characters of t is in s.
So for s = "abcde" and t = "cbe" return true instead of false as in Q1.

However if t = "bxy" returns false.
You can assume that all characters are unique (i.e. no duplciate).
Also, do not make assumption about the character being ascii, it could be utf-8 that represents
chinese characters. However, for the purpose of this exercise, just use a string or char type.
鏉ユ簮涓浜.涓夊垎鍦拌鍧.
3. This question is similar to 2. Here, we want to find the length of the SHORTEST substring in s that
contains all the characters in t. So for example, if s = "aabbcccddeeeeebafd" if t = "bad"
then the solution is "bafd" not "abbcccd" which longer. The character set could be in utf-8,
that is, you cannot assume that the character set has size 256. Assume also that you have run
it through the code in 2 and know that all characters in t are in s. no duplcates in string t.. 涓浜-涓夊垎-鍦帮紝鐙鍙戝竷




评分

3

查看全部评分

求求求求内推 发表于 2015-12-8 06:12:37 | 显示全部楼层
很想面试他们的Supply Chain 部门 不知道是否 有机会,楼主有内推的?
回复 支持 反对

使用道具 举报

本版积分规则

关闭

一亩三分地推荐上一条 /5 下一条

手机版|小黑屋|一亩三分地论坛声明

custom counter

GMT+8, 2017-9-22 09:18

Powered by Discuz! X3

© 2001-2013 Comsenz Inc. Design By HUXTeam

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