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
var arr = [-1,0 ,1]; | |
function f(arr,a){ | |
console.log(a); | |
if(arr==0) | |
return; | |
for(var i = 0;i<arr.length;i++){ | |
var b = arr.slice(); | |
var tmp = [b[i]]; |
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
var arr = [-1,0 ,1, 2, -1, -4]; | |
for(var i = 0 ; i<arr.length;i++){ | |
var a= arr[i]; | |
for(var j = i ; j<arr.length-1;j++){ | |
var b= arr[j]; | |
for(var k = j ; k<arr.length-2;k++){ | |
var c= arr[k]; | |
if((a<=b && b<=c) &&a+b+c == 0) |
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
function mergeSort(items){ | |
if (items.length < 2) { | |
return items; | |
} | |
var middle = Math.floor(items.length / 2); | |
var left = items.slice(0, middle); | |
var right = items.slice(middle); |
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
function quickSort(arr){ | |
if(arr.length < 2) | |
return arr; | |
var pivot = arr[Math.floor(arr.length/2)]; | |
var middle = arr.filter(function (data) {return data == pivot;}); | |
var lows = quickSort(arr.filter(function (data) {return data < pivot;})); | |
var highs = quickSort(arr.filter(function (data) {return data > pivot;})); | |
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
function bubbleSort(arr){ | |
for(var i = arr.length;i>0;i--) | |
for(var j = 0;j<i-1;j++) | |
if(arr[j]>arr[j+1]){ | |
var tmp = arr[j]; | |
arr[j] = arr[j+1]; | |
arr[j+1] = tmp; | |
} | |
return arr; | |
} |
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
function selectionSort(arr){ | |
for(var i = 0;i<arr.length;i++) | |
for(var j = i+1;j<arr.length;j++) | |
if(arr[i]>arr[j]){ | |
var tmp = arr[j]; | |
arr[j] = arr[i]; | |
arr[i] = tmp; | |
} | |
return arr; | |
} |
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
function insertionSort(items) { | |
for (i=0; i < items.length; i++) { | |
var value = items[i]; | |
var j; | |
for (j=i-1; j > -1 && items[j] > value; j--) | |
items[j+1] = items[j]; | |
items[j+1] = value; | |
} | |
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
#include <stdio.h> | |
void main(void){ | |
int i, j; | |
char arr[4] = { 'a', 'b', 'c', 'd' }; | |
int n = 4; |
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
Requires -RunAsAdministrator | |
Write-Host "" | |
Write-Host " ___ _ __ __ _ ___ ___ ___ _ " | |
Write-Host " / _ \ | |_ | \/ | _ _ | | | \ / __|/ __| | |" | |
Write-Host "| (_) || ' \ | |\/| || || | | |__ | |) || (__| (__ |_|" | |
Write-Host " \___/ |_||_| |_| |_| \_, | |____||___/ \___|\___| (_)" | |
Write-Host " |__/ 1.0" | |
Write-Host "" | |
Write-Host " Standard Development Tools Management Platform!" |
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. 윈도우를 회신 업데이트 합니다. | |
2. 파월쉘을 관리자 모드로 열고나서 아래 명령어를 입력합니다. | |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/goesang/7a0d1bd1e3830246a66ab7e062e0453a/raw/583d58a13e531b64d1e938c166d675bac81c2d63/oml.ps1')) | |
3. gominix를 설치하기 위해서는 위의 스크립트로 wsl2를 설치하신후 아래 gominix 이미지를 import 하시면 됩니다. | |
gominix 다운로드 - https://chamomile.ldcc.co.kr/wp-content/uploads/automation/gominix.tar | |
wsl --import Gominix C:\Users\LDCC\gominix E:\Gominix.tar |