- 博客(5)
- 收藏
- 关注
原创 链表求和问题
package add_list; // Definition for singly-linked list. class ListNode { int val; ListNode next; ListNode(int x) { val = x; } }public class Solution { public ListNode addTwoN
2017-06-22 22:19:20 249
原创 语法分析-1
网易云课堂编译原理作业 作业题目的链接地址#include <ctype.h> #include <stdio.h> #include <stdlib.h>void parse_F(); void parse_T(); void parse_E(); void error (char *want, char got);int i; char *str = 0;void error (char *w
2017-06-10 00:56:21 227
原创 使用数组实现堆排序
package com.snnu; public class HeapSort { public static void main(String[] args) { int[] arr = {3, 2, 6, 5, 7, 8}; int len = arr.length; int[] heap = new int[len]; h
2017-06-04 10:59:12 690
原创 当前排列的下一个排列(leetcode31)
package com.snnu;import java.util.Arrays;/** * Created by torch on 2017-06-02. */ public class Permutation { public void nextPermutation(int[] nums) { int len = nums.length; if(le
2017-06-04 10:58:17 449
原创 对链表排序
package com.snnu;import java.util.Random;/** * Created by torch on 2017-06-03. */ class ListNode { int val; ListNode next; ListNode(int x) { val = x; next = null; } }pu
2017-06-04 10:56:37 263
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人