摘要:
最近看到一个阿里的面试题目,觉得很有意思,遂记下。 阿里2014年笔试题目,(选择题)是给定生成1-7的随即函数rand_7,看是否能生成其它随机数? A. rand_3 B. rand_21 C. rand_23 D.rand_47首先从最简单的开始,给定一个能够随机生成1到7之间数字的r... 阅读全文
摘要:
【题目】: Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists:... 阅读全文
摘要:
题目:Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.The functi... 阅读全文
摘要:
【题目】:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the t... 阅读全文
摘要:
【题目】: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain ... 阅读全文
摘要:
题目: Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-... 阅读全文