#include <iostream>
using namespace std;
int* func() {
int *ptr = new int;
*ptr = 1200;
cout << "ptr points to " << *ptr << endl;
return ptr;
}
int main() {
int *x = func();
cout << *x << endl;
return 0;
}
class Solution { public List < List < Integer >> threeSum ( int [] nums ) { Arrays . sort (nums); // first sort...
No comments:
Post a Comment