This file contains 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
"react-router": "^1.0.3", | |
"react-router-dom": "^5.2.0", | |
import {BrowserRouter as Router, Route, Link, Switch} from 'react-router-dom'; | |
// Nested Route | |
ReactDOM.render( | |
( | |
<Router> | |
<Switch> |
This file contains 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. Remove Scene delegate methods from AppDelegate and delete the Scene delegate file. | |
2. remove UIApplicationSceneManifest from Info.plist. | |
3. we need to add a window property in AppDelegate `@property(nonatomic, strong) UIWindow *window;` For Swift, add `var window: UIWindow?` |
This file contains 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
https://docs.oracle.com/en/java/javase/11/install/installation-jdk-macos.html#GUID-F575EB4A-70D3-4AB4-A20E-DBE95171AB5F |
This file contains 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 { | |
public: | |
/** | |
* @param nums: A set of numbers | |
* @return: A list of lists | |
*/ | |
vector<vector<int>> subsets(vector<int> &nums) { | |
if (nums.size() == 0) { | |
vector<vector<int>> res; | |
vector<int> empty; |
This file contains 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
public class Solution { | |
/** | |
* @param nums: A set of numbers | |
* @return: A list of lists | |
*/ | |
public List<List<Integer>> subsets(int[] nums) { | |
Arrays.sort(nums); | |
return helper(nums, nums.length - 1); | |
} |
This file contains 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 SVNRepo { | |
* public: | |
* static bool isBadVersion(int k); | |
* } | |
* you can use SVNRepo::isBadVersion(k) to judge whether | |
* the kth code version is bad or not. | |
*/ | |
class Solution { | |
public: |
This file contains 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 { | |
public: | |
/** | |
* @param nums: a rotated sorted array | |
* @return: the minimum number in the array | |
*/ | |
int findMin(vector<int> &nums) { | |
int n = nums.size(); | |
int start = 0, end = n - 1; | |
if (nums[start] < nums[end]) return nums[start]; |