上一页 1 2 3 4 5 6 7 ··· 46 下一页
摘要: Given an array nums of integers and an int k, partition the array (i.e move the elements in "nums") such that:All elements < k are moved to the leftA... 阅读全文
posted @ 2015-09-12 00:51 卖程序的小歪 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Given an integer array, find a subarray where the sum of numbers is zero. Your code should return the index of the first number and the index of the ... 阅读全文
posted @ 2015-09-12 00:17 卖程序的小歪 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Given two strings, find the longest common substring. Return the length of it. Have you met this question in a real interview? Yes Example Given A = ... 阅读全文
posted @ 2015-09-11 23:14 卖程序的小歪 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. For example, given n = 12... 阅读全文
posted @ 2015-09-10 00:32 卖程序的小歪 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Follow up for H Index: What if the citations array is sorted in ascending order? Could you optimize your algorithm? Hint:Expected runtime complexity... 阅读全文
posted @ 2015-09-09 15:55 卖程序的小歪 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Given an array of citations (each citation is a non negative integer) of a researcher, write a function to compute the researcher's h index. Accordin... 阅读全文
posted @ 2015-09-09 15:36 卖程序的小歪 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 报文 状态 从wiki上搬运过来 重要参数 RTT(Round Trip Time) 即链路传输延时,从数据发送到达对端并受到对端ack的一次来回时间。由于TCP是依赖报文确认机制来实现传输的可靠性的,因而RTT对TCP传输有非常大得影响。 BDP(Bandwidth Delay ... 阅读全文
posted @ 2015-09-07 23:24 卖程序的小歪 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 参考 百度百科内存对齐 对齐作用 可以使得以最少的次数将操作数加载到寄存器中,如果数据没有对齐,则当CPU以最小读取数据大小从内存读入数据时可能只取到了一部分数据,而对齐情况下可以一次读入。 对齐修改 在程序中可以通过 指定对齐大小,x即为需要指定的对齐大小。默认情况下32位平台采用4字节对齐... 阅读全文
posted @ 2015-09-07 11:05 卖程序的小歪 阅读(318) 评论(0) 推荐(0) 编辑
摘要: >Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For exa... 阅读全文
posted @ 2015-08-29 21:35 卖程序的小歪 阅读(118) 评论(0) 推荐(0) 编辑
摘要: >Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.For example,Given nums = [0, 1, ... 阅读全文
posted @ 2015-08-29 16:54 卖程序的小歪 阅读(120) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 46 下一页