Skip to content

Instantly share code, notes, and snippets.

View FionaT's full-sized avatar
🌴
On vacation

Fiona FionaT

🌴
On vacation
View GitHub Profile
@FionaT
FionaT / 1_4.cpp
Created April 5, 2015 14:15
cc 1.4
#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;
/*
[question]
@FionaT
FionaT / 1_2.cpp
Created April 5, 2015 14:14
careercup 1.2
#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;
/*
[question]
1.2 Implement a function void reverse(char* str) in C or C++ which reverses a nullterminated string.
#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;
/*
[question]
1.3 Given two strings, write a method to decide if one is a permutation of the other.
#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;
/*
[solution]
1.we can create a boolean arrary with size of 256 since there are
256 ascii character in total.