Terminal Command ls - list files pwd - path of working directory \q - quit exit - quit cp - copy mkdir - make directory mv 'file' 'location' - move file to the location open - open file cat - read/write file nano - text editor rm - remove vi - text editor Vi command :q - quit i - insert :w - write dw - delete word dd - delete line
Error The server time zone value 'EDT' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specific time zone value if you want to utilize time zone support. Start MySQL mysql -u root -p Change directory to search my.cnf cd /usr/local/etc/my.cnf Check "my.cnf" File cat my.cnf add ..
Mac OS Java 8.0 MySQL 5.7.27 connector 8.0.17 Install MySQL Option 1. Visit MySQL website to download https://dev.mysql.com/downloads/connector/j Option 2. Use Homebrew which is a free and open-source software package management system that simplifies the installation of software on Apple's macOS. Decompress the file. We will use file mysql-connector-java-8.0.17.jar Connecting to JDBC IntelliJ -..
Sequential Search Algorithm (Linear Search) 순차탐색 Less used than binary search and Hash Table. Big-O notation for Sequential Search is O(n) which is relatively slower than others. public class Main { public static void main(String[] args) { int arr[] = {7, 4, 3, 1, 5}; int x = 3; int answer = linearSearch(arr, x); if(answer == -1){ System.out.println("No element matched"); }else{ System.out.print..
Selection Sort 선택정렬 Selection sort searches for the smallest element among the unsorted elements sort them in ascending order and places them in order from the first index of the array. Solution in Java public class Main { public static void main(String[] args) { int arr[] = {37, 15, 8, 22, 10}; //required {8, 10, 15, 22, 37} in ascending order. selectionSort(arr); showArr(arr); } private static..
Primitive types swap method will never work because Java is strictly Pass-By-Value. If you want to swap two arguments, use array or object to send reference as a value. Example I primitive types are never changed class Main { //primitive type doesn't swap public static void swap(int i, int j) { int temp = i; i = j; j = temp; } public static void main(String[] args) { int i = 10; int j = 20; swap..
- Total
- Today
- Yesterday
- easy javascript algorithm
- javascript
- equals()
- HackerRank Algorithm
- Object type casting
- repeat()
- ... in Javascript
- math.abs
- HashMap
- rest parameter
- java
- compareTo()
- hackerrank javascript solution
- easy algorithm
- math.max
- hackerrank solution
- spring boot application
- hackerrank javascript
- code refactoring
- Javascript Algorithm
- 알고리즘
- 프로그래머스
- 프로그래머스 알고리즘문제
- hackerrank
- substring()
- algorithm
- 프로그래머스 알고리즘
- string class in java
- C++
- Collection Framework
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |