Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
Tags
- string
- Data Structure
- Class
- implement
- dynamic programming
- SQL
- Number Theory
- sorting
- 파이썬
- 코테
- java
- two pointers
- 자바
- Math
- Binary Search
- Method
- 구현
- Matrix
- Counting
- database
- greedy
- 코딩테스트
- Binary Tree
- simulation
- Tree
- geometry
- Stack
- array
- bit manipulation
- hash table
Archives
- Today
- Total
목록순차 (1)
코린이의 소소한 공부노트
Sequential Search
1. Problem - n개의 요소가 담긴 배열 S에서 x를 찾아보자 2. Input 1) 양수 n 2) 배열 S indexed from 1 to n 3) key x 3. Output 1) x의 위치 2) S에 x가 없다면 0을 반환 4. PseudoCode index seqsearch(int n, const keytype[] S, keytype x, index location){ location = 1; while(locationn) location = 0; return location; } 5. Example class Test { public static void main(String[] args){ int[] arr = {5, 9, 3, 10, 6, 2, 1}; int a = 6; int inde..
Back-End/Algorithm
2023. 2. 22. 19:58