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
/** | |
* Definition for a binary tree node. | |
* public class TreeNode { | |
* int val; | |
* TreeNode left; | |
* TreeNode right; | |
* TreeNode() {} | |
* TreeNode(int val) { this.val = val; } | |
* TreeNode(int val, TreeNode left, TreeNode right) { | |
* this.val = val; |
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
// Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. | |
// An input string is valid if: | |
// Open brackets must be closed by the same type of brackets. | |
// Open brackets must be closed in the correct order. | |
// Note that an empty string is also considered valid. | |
// Example 1: | |
// Input: "()" |
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
:: TO START TOMCAT SERVICE :: | |
@ECHO OFF | |
cd \D "Your tomcat path\bin" | |
startup.bat | |
endlocal |
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
spring.jpa.hibernate.ddl-auto = validate | |
spring.datasource.url = jdbc:postgresql://localhost:5432/db_name | |
spring.datasource.username = postgres | |
spring.datasource.password = postgres | |
spring.datasource.testOnBorrow = true | |
spring.datasource.validationQuery = SELECT 1 | |
spring.jpa.properties.hibernate.default_schema = db_schema_name | |
spring.flyway.schemas = db_schema_name |
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 SortingArray { | |
public static void main (String args[]) { | |
String date = "01/01/2019"; | |
int days = 10; | |
System.out.println("EX :- 1"); | |
System.out.println("----------"); | |
System.out.println(String.valueOf(Integer.parseInt(date.substring(0,2)) + days) + date.substring(2)); | |
System.out.println(""); | |
System.out.println("EX :- 2"); |
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
{ | |
"name": "example-app", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"axios": "^0.18.0", | |
"mobx": "^4.1.1", | |
"mobx-react": "^5.0.0", | |
"react": "^16.3.1", | |
"react-app-rewire-mobx": "^1.0.8", |