MCPcopy Create free account
hub / github.com/EricPengShuai/Interview / main

Function main

memo/listnode.cpp:109–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108
109int main() {
110 string line;
111
112 // string 文件中的 getline(cin, line, delim='\n')
113 while (getline(cin, line)) {
114 if(line == "quit") {
115 cout << "bye~~\n";
116 return 0;
117 }
118 ListNode* list1 = stringToListNode(line);
119 getline(cin, line);
120 ListNode* list2 = stringToListNode(line);
121
122 ListNode* ret = Solution().mergeTwoLists(list1, list2);
123
124 string out = listNodeToString(ret);
125 cout << out << endl;
126 }
127 return 0;
128}

Callers

nothing calls this directly

Calls 4

stringToListNodeFunction · 0.85
listNodeToStringFunction · 0.85
mergeTwoListsMethod · 0.80
SolutionClass · 0.70

Tested by

no test coverage detected