Given a list, rotate the list to the right
bykplaces, wherekis non-negative.For
example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL./***D...
分类:
其他好文 时间:
2014-06-04 20:44:57
阅读次数:
227
Rotate ImageYou are given an n x n 2D matrix
representing an image.Rotate the image by 90 degrees (clockwise).Follow up:
Could you do this in-place?最简...
分类:
其他好文 时间:
2014-05-29 23:02:38
阅读次数:
254
1 #include 2 3 /*从一个图象文件中生成 GdkPixbuf 类型数据*/ 4
GdkPixbuf * create_pixbuf(const gchar *filename) 5 { 6 GdkPixbuf *pixbuf; 7
GError *error = ...
分类:
其他好文 时间:
2014-05-28 21:24:02
阅读次数:
289
3d 视图效果,x/y/z轴的说明图1 rotateX( angle )2 rotateY(
angle )3 rotateZ( angle )4
rotate旋转的意思,rotateX旋转X轴,rotateY旋转Y轴,rotateZ旋转Z轴rotateX、rotateY、rotateZ、rotat...
分类:
Web程序 时间:
2014-05-28 16:15:02
阅读次数:
461
亲测,ubuntu 14.04 + OpenCV 2.471 编译环境 sudo apt-get
install build-essential2 安装GTK环境 sudo apt-get install libgtk2.0-dev3
编译GTK程序时自动找出头文件及库文件位置 sudo apt-g...
分类:
其他好文 时间:
2014-05-26 01:54:43
阅读次数:
331
Given a list, rotate the list to the right
bykplaces, wherekis non-negative.For
example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.思路:这道...
分类:
其他好文 时间:
2014-05-26 00:06:39
阅读次数:
250
QGtkStyle could not resolve GTK. Make sure you
have installed the proper libraries.sudo apt-get install --reinstall
gtk2-engines-murrine:i386sudo add-...
分类:
其他好文 时间:
2014-05-25 23:45:25
阅读次数:
276
1 #include 2 3 int main(int argc, char **argv)
4 { 5 GtkWidget *window; 6 gtk_init(&argc, &argv); 7 window =
gtk_window_new(GTK_WINDOW_...
分类:
系统相关 时间:
2014-05-25 20:14:10
阅读次数:
314
sudo apt-get install gtk2-engines:i386sudo apt-get
install gtk2-engines-murrine:i386
分类:
其他好文 时间:
2014-05-25 18:43:59
阅读次数:
274
【题目】
Given a list, rotate the list to the right by k places, where k is non-negative.
For example:
Given 1->2->3->4->5->NULL and k = 2,
return 4->5->1->2->3->NULL.
【题意】
给定一个链表L,和非负数K,要求把链表的后k个节点移到链表前
【思路】
先将指针指向指向倒数第K个节点,然后...
分类:
其他好文 时间:
2014-05-25 18:20:06
阅读次数:
252