Skip to content

Commit 26b3914

Browse files
committed
add 242
1 parent 606bde0 commit 26b3914

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

leetcode/leetcode_242.cpp

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
2+
/*
3+
* =========================================================================
4+
*
5+
* FileName: leetcode_242.cpp
6+
*
7+
* Description:
8+
*
9+
* Version: 1.0
10+
* Created: 2018-11-29 11:07:13
11+
* Last Modified: 2018-11-29 11:07:23
12+
* Revision: none
13+
* Compiler: gcc
14+
*
15+
* Author: zt ()
16+
* Organization:
17+
*
18+
* =========================================================================
19+
*/
20+
21+
#include <stdio.h>
22+
#include <stdlib.h>
23+
#include <stdint.h>
24+
#include <stddef.h>
25+
#include <string.h>
26+
#include <signal.h>
27+
#include <errno.h>
28+
#include <unistd.h>
29+
#include <netinet/in.h>
30+
#include <arpa/inet.h>
31+
#include <sys/socket.h>
32+
33+
#include <iostream>
34+
#include <memory>
35+
#include <algorithm>
36+
#include <vector>
37+
#include <thread>
38+
#include <mutex>
39+
#include <map>
40+
#include <list>
41+
#include <string>
42+
#include <functional>
43+
44+
using namespace std;
45+
46+
bool isAnagram ( string s, string t )
47+
{
48+
49+
sort ( s.begin(), s.end() );
50+
sort ( t.begin(), t.end() );
51+
52+
return s == t;
53+
}
54+
55+
int main ( int argc, char* argv[] )
56+
{
57+
( void ) argc;
58+
( void ) argv;
59+
60+
61+
return 0;
62+
}
63+

0 commit comments

Comments
 (0)