# 标签归档：leetcode

## C语言实现数组的就地旋转 作者是 在线疯狂 发布于 2015年2月26日 在 译林.

LeetCode原文：http://articles.leetcode.com/2010/04/rotating-array-in-place.html

Rotate a one-dimensional array of n elements to the right by k steps.
For instance, with n=7 and k=3, the array {a, b, c, d, e, f, g ...

## 题目描述：

Rotate an array of n elements to the right by k steps.

For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4 ...

## 题目描述：

Say you have an array for which the ith element is the price of a given stock on day i.

Design an algorithm to find the maximum profit. You may complete at most k transactions.

Note:

You may not ...

## 题目描述：

All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to identify repeated sequences within the DNA.

Write a function to find all ...

## [LeetCode题解]从两个有序数组的并集中寻找第k小元素 作者是 在线疯狂 发布于 2015年2月5日 在 算法.

Given two sorted arrays A, B of size m and n respectively. Find the k-th smallest element in the union of A and B. You can assume that there are no duplicate elements.