由买买提看人间百态

topics

全部话题 - 话题: addurl
(共0页)
s**********l
发帖数: 8966
b********g
发帖数: 28
2
来自主题: JobHunting版 - G家电面的两个题
Here is the code:
public class URLAverage{
private static final int MAX_LEN = 400;
private int total = 0;
private int sumCount = 0;
private double avg = 0.0;
private int idx = 0;
private int offset = 0;
int[] count = new int[MAX_LEN];
public double getAverage(){
if(offset + sumCount == 0) return 0.0;
return (sumCount * avg + offset * (idx + 1)) / (offset + sumCount);
}
public void addURL(String url){
int k = url.length();
count[k - 1]++;
if(k - 1 < idx){
... 阅读全帖

发帖数: 1
3
来自主题: JobHunting版 - 亚麻面经
AWS职位
电面:
geeksforgeeks: Sort a nearly sorted (or K sorted) array
亚麻是唯一见过电面面culture的公司, customer obsession, ownership
电面后culture跪了, 刷题pass. 立马由principal降为senior
onsite:
1. design rate limiter
2. 实现一函数, 输入为两字符串,其中任意一串为另一串的prefix返回true, 否则
false
3. 实现一数据结构, 支持以下两操作
void addURL(String url);
String getKthMostFrequentURL(int k);
4. 给一文本文件, 每行一整数. 写一函数,传入文件名, 输出K largetst numbers.
5. culture, culture, culture
p*********n
发帖数: 540
4
来自主题: BuildingWeb版 - how to let search engin find you
To submit ur site:
http://www.google.com/addurl.html
g******d
发帖数: 157
5
来自主题: BuildingWeb版 - search engine submmision
add your URL to open directory project,
also try http://google.com/addurl.html
The best way is list your link on other
web pages that are indexed by google and
that can bring you a lot of traffic. It
never takes more then a week to list
my new web sites and my record is 2 days :)
(共0页)