[nb] Commit
This commit is contained in:
		
							
								
								
									
										17
									
								
								dynamic-programming/22-generate-parenthesis/js/index.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								dynamic-programming/22-generate-parenthesis/js/index.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| function generateParenthesis(n) { | ||||
|   if (n == 1) { | ||||
|     return ['()']; | ||||
|   } | ||||
|  | ||||
|   if (n == 2) { | ||||
|     return ['()()', '(())']; | ||||
|   } | ||||
|  | ||||
|   const input = []; | ||||
|   for (i = 0; i < n; i++) { | ||||
|     input.push('()'); | ||||
|   } | ||||
|  | ||||
|   for(i = 0; i < n; i++; i++) { | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user