This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 1 | |
* / \ | |
* 2 3 | |
* / \ | |
* 4 5 | |
* | |
* inorder (left, root, right) : 4 2 5 1 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution { | |
int numMatchingSubseq(String s, List<String> words) { | |
// List<String> ss = s.split(''); | |
int result = 0; | |
for(String item in words){ | |
String tempS = s; | |
List<String> wordsOne = item.split(''); | |
bool isContain = false; | |
for(String one in wordsOne){ | |
print(wordsOne); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a basic Flutter widget test. | |
// | |
// To perform an interaction with a widget in your test, use the WidgetTester | |
// utility in the flutter_test package. For example, you can send tap and scroll | |
// gestures. You can also use WidgetTester to find child widgets in the widget | |
// tree, read text, and verify that the values of widget properties are correct. | |
import 'dart:collection'; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
Miro miro = Miro(); | |
Student jason = Jason(); | |
Student bera = Bera(); | |
miro.subscribe(jason); | |
miro.subscribe(bera); | |
miro.speak(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
for (int i = 0; i < 5; i++) { | |
print('hello ${i + 1}'); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
for (int i = 0; i < 5; i++) { | |
print('hello ${i + 1}'); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
Solution solution = Solution(); | |
print(solution.calculate("14-3/2")); | |
} | |
class Solution { | |
int calculate(String s) { | |
List<String> chs = s.split(''); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a basic Flutter widget test. | |
// | |
// To perform an interaction with a widget in your test, use the WidgetTester | |
// utility in the flutter_test package. For example, you can send tap and scroll | |
// gestures. You can also use WidgetTester to find child widgets in the widget | |
// tree, read text, and verify that the values of widget properties are correct. | |
import 'dart:collection'; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. User는 Name(String)을 가진다. | |
// 2. Teacher는 id(int)를 가진다. | |
// 3. Teacher는 User이다. | |
// 4. Student는 gpa(String or double)학점을 가진다. | |
// 5. Student는 User이다. | |
// 6. Member는 email을 가진다. | |
// 7. Member는 Teacher와 Student를 가진다. | |
abstract class User{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. User는 Name(String)을 가진다. | |
// 2. Teacher는 id(int)를 가진다. | |
// 3. Teacher는 User이다. | |
// 4. Student는 gpa(String or double)학점을 가진다. | |
// 5. Student는 User이다. | |
// 6. Member는 email을 가진다. | |
// 7. Member는 Teacher와 Student를 가진다. | |
class User{ |
OlderNewer