[ create a new paste ] login | about

baojie

Name: Jie Bao
Email:
Site/Blog:
Location: 美国
Default language:
Favorite languages: C, C++, PHP
About:

Saved pastes by baojie:

C++, pasted on Jun 20:
1
2
3
4
5
//22 String premutation
//2011-06-20

#include <iostream>
using namespace std;
...
view (39 lines, 15 lines of output)
C++, pasted on Jun 20:
1
2
3
4
5
//21 Binary Search on sorted array
//2011-06-19

#include <iostream>
using namespace std;
...
view (30 lines, 1 line of output)
C++, pasted on Jun 20:
1
2
3
4
5
//20 Compare recursive and interative factorial functions
//2011-06-19

#include <iostream>
#include <time.h>
...
view (37 lines, 3 lines of output, 1 comment)
C++, pasted on Jun 20:
1
2
3
4
5
//19 Integer to/from string
//2011-06-19

#include <iostream>
using namespace std;
...
view (58 lines, 2 lines of output)
C++, pasted on Jun 20:
1
2
3
4
5
//18 Reverse words
//   Use stack or not
//2011-06-19

#include <iostream>
...
view (88 lines, 1 line of output)
C++, pasted on Jun 19:
1
2
3
4
5
//17 Remove chars from a string
//   Use char array instead of hash map
//2011-06-19

#include <iostream>
...
view (35 lines, 1 line of output)
C++, pasted on Jun 19:
1
2
3
4
5
//16 Find the first characters in an string that appears only once
//2011-06-19

#include <iostream>
#include <map>
...
view (30 lines, 1 line of output)
C++, pasted on Jun 19:
1
2
3
4
5
//14 Queue and Tree BFS With No Recursion
//   Key is the function DFS
//2011-06-18

#include <iostream>
...
view (111 lines, 1 line of output)
C++, pasted on Jun 19:
1
2
3
4
5
//15 Find LowestCommon Anscestor in a Binary Search Tree
// In BST: left <= self <= right
//2011-06-18

#include <iostream>
...
view (79 lines, 19 lines of output)
C++, pasted on Jun 19:
1
2
3
4
5
//13 Queue and Tree BFS
//2011-06-18

#include <iostream>
using namespace std;
...
view (139 lines, 12 lines of output)
C++, pasted on Jun 19:
1
2
3
4
5
//12  Tree treversals
//2011-06-18

#include <iostream>
using namespace std;
...
view (89 lines, 15 lines of output)
C++, pasted on Jun 18:
1
2
3
4
5
//11 Create a tree
//2011-06-18

#include <iostream>
using namespace std;
...
view (57 lines, 9 lines of output)
C++, pasted on Jun 18:
1
2
3
4
5
//10 Determine if a list is cyclic
//2011-06-18

#include <iostream>
using namespace std;
...
view (72 lines, 6 lines of output)
C++, pasted on Jun 18:
1
2
3
4
5
//09 Find the m-th-to-last element of a linked list
//2011-06-18

#include <iostream>
using namespace std;
...
view (55 lines, 2 lines of output)
C++, pasted on Jun 18:
1
2
3
4
5
//08 Remove head of a linked list
//2011-06-18

#include <iostream>
using namespace std;
...
view (48 lines, 3 lines of output)
C, pasted on Jun 18:
1
2
3
4
5
int main()
{
   printf ("Hello World!\n");
   return 1;
}
view (5 lines, 1 line of output)
C++, pasted on Jun 18:
1
2
3
4
// 07 Maintain linkled list tail and head pointers
// 2011-06-18

#include <stdio.h>
...
view (105 lines, 5 lines of output)
C, pasted on Jun 18:
1
2
3
4
5
//06 Linked list based stack

//2011-06-18

#include <stdio.h>
...
view (61 lines, 7 lines of output)
C, pasted on Jun 18:
1
2
3
4
//05 Delete an element from a linked list
//only read "delete" function. The other functions are from example 04
// http://codepad.org/mSBjdVNy
//2011-06-18
...
view (97 lines, 8 lines of output)
C, pasted on Jun 18:
1
2
3
4
//Insert new head to a linked list; print a linked list
//2011-06-18

#include <stdio.h>
...
view (49 lines, 1 line of output)
C, pasted on Jun 18:
1
2
3
4
5
//Compare two integers without using any comparative operators

#include <stdio.h>

//return 1 if n1==n2, otherwise return 0
...
view (18 lines, 2 lines of output)
C, pasted on Jun 18:
1
2
3
4
5
// hello world of C
main()
{
   printf ("Hello World!\n");
   return 1;
...
view (6 lines, 1 line of output)
PHP, pasted on Jun 18:
1
2
3
4
5
<?php

$p = array(0.5, 0.1, 0.2, 0.2);

$e = 0;
...
view (11 lines, 1 line of output, 1 comment)
C, pasted on Jun 18:
1
2
3
4
5
#include <stdio.h>

main()
{
   int *p; int v=5;
...
view (10 lines, 2 lines of output)