์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
- ์์๋ฒํธ
- ํฐ์คํ ๋ฆฌ์ฑ๋ฆฐ์ง
- well known ํฌํธ
- ํ ํฐ ๋ฒ์ค
- reducible
- ์๋น์ค ํ๋ฆฌ๋ฏธํฐ๋ธ
- ์ฃผ๊ธฐ์ ํธ
- ํญํด99
- til
- ์ฐ๋ถํฌdb
- mariadb
- IEEE 802
- xv6
- ํ๋ ์ ๊ตฌ์กฐ
- ์ค๋ธ์
- ์ค๋ฅ๊ฒ์ถ
- ๋น์ฃผ๊ธฐ์ ํธ
- tcp ์ธ๊ทธ๋จผํธ
- i-type
- git merge
- ๋ฐ์ดํฐ ์ ์ก
- 99ํด๋ฝ
- ์ค๋ ๋
- ์ฝ๋ฉํ ์คํธ์ค๋น
- ๊ฐ๋ฐ์์ทจ์
- ์ค๋ฅ์ ์ด
- tcp ํ๋กํ ์ฝ
- leetcode
- ํ๋ก์ด๋์์
- ๊ทธ๋ฆฌ๋ ์๊ณ ๋ฆฌ์ฆ
- Today
- Total
๋ชฉ๋ก๋ถ๋ฅ ์ ์ฒด๋ณด๊ธฐ (165)
Unfazedโ๏ธ๐ฏ

์ฒซ ์๋) ์๊ฐ ์ด๊ณผ public class Main { public static void scorecalculator(int[] people){ int score = 0; for(int i=0; i

์ฒซ ์ ๊ทผ ๋ฐฉ์ (์ค๋ต) 4๊ฐ์ ์คํ์ผ๋ก ๋ถ๋ฆฌํ์ง ์๊ณ ๋จ์ํ ์์ด์ ์ค๋ฆ์ฐจ์์ด ๋๊ธธ ๋๋ง๋ค ๋ค๋ฅธ ์คํ์ ๋ด์์ผ๋๋ค๊ณ ์๊ฐํ์ฌ ์คํ ์นด์ดํธ๋ฅผ ์ฆ๊ฐ์ํค๊ณ ์คํ ์นด์ดํธ 4์ด๊ณผ์ NO๋ฅผ ์ถ๋ ฅํ๋ ๋ก์ง์ผ๋ก ๊ตฌํ. ์๋ชป๋ ์ด์ : ํ ๋ฒ ์ค๋ฆ์ฐจ์์ด ๋๊ธฐ๋ฉด ํด๋น ์คํ์ ์ฌ์ฌ์ฉํ์ง ์๊ธฐ ๋๋ฌธ. ๊ตฌ๊ธ๋ง ์ดํ์ ๋ค์ ์ ๊ทผ 1. ์์ด์ ๋ฐฐ์ด๋ฆฌ์คํธ์ ๋ด๊ธฐ ArrayList numlist = new ArrayList(); for(int i=0; i ํด๋น num์ stack ์ค ํ๋์ ๋ด์ ์ ์์ผ๋ฉด true, ์๋ค๋ฉด false boolean cleanFlag = true; for(int num : numlist){ if(!placeInStack(num, stackList)){ cleanFlag = false; break; } ..
14์ฅ ์ง์ญ ํน์ง์ ๊ฒ์ถ๊ณผ ๋งค์นญ 435p. 1. 16๊ฐ์ ํฝ์ ๊ฐ๋ค์ ํ์ฉํ๋ ์ฝ๋ ๊ฒ์ถ ๋ฐฉ๋ฒ FAST ์ฝ๋ ๊ฒ์ถ ๋ฐฉ๋ฒ ์ฝ๋ ๊ฒ์ถ ๊ธฐ์ค: ์์์ ๋ชจ๋ ํฝ์ ์์ ํฝ์ ์ ๋๋ฌ์ธ๊ณ ์๋ 16๊ฐ์ ์ฃผ๋ณ ํฝ์ ๊ณผ ๋ฐ๊ธฐ๋ฅผ ๋น๊ตํ์ฌ ์ฝ๋ ์ฌ๋ถ๋ฅผ ํ๋ณ. ์ p๊ฐ ์ฝ๋์ธ์ง ํ๋ณํ๊ธฐ ์ํด p์ ์ฃผ๋ณ 1~16๋ฒ ํฝ์ ๊ณผ์ ๋ฐ๊ธฐ๋ฅผ ๋น๊ต ๋ง์ฝ ์ p๋ณด๋ค ์ถฉ๋ถํ ๋ฐ๊ฑฐ๋ ์ด๋์ด ํฝ์ ์ด 9๊ฐ ์ด์ ์ฐ์์ผ๋ก ์กด์ฌํ๋ค๋ฉด ์ฝ๋๋ก ์ ์. ๋ค๋ฅธ ์ฝ๋ ๊ฒ์ถ ๊ธฐ๋ฒ๊ณผ ๋น๊ตํ์๋ ํน์ง : ์ฅ์ :๋จ์ํ ํฝ์ ๊ฐ ๋น๊ต ๋ฐฉ๋ฒ์ ํตํด ์ฝ๋๋ฅผ ๊ฒ์ถํ๊ธฐ ๋๋ฌธ์ ์ฐ์ฐ์๋๊ฐ ๋น ๋ฅด๋ค. ๋จ์ : ํน์ ์ฝ๋ ์ ์ฃผ๋ณ ํฝ์ ๋ค๋ ํจ๊ป ์ฝ๋๋ก ๊ฒ์ถํ๋ ๊ฒฝ์ฐ๊ฐ ์ฆ์ => ๋น์ต๋ ์ต์ ์์ ์ถ๊ฐ ์ํ ๋น์ต๋ ์ต์ : ์ฝ๋ ์ ์ = (์ p - ์ฃผ๋ณ 16๊ฐ ์ ๊ฐ ํฝ์ ๊ฐ) ์ธ์ ํ..
public String repeatโ(int count) Returns a string whose value is the concatenation of this string repeated count times. If this string is empty or count is zero then the empty string is returned. Parameters:count - number of times to repeatReturns:A string composed of this string repeated count times or the empty string if this string is empty or count is zeroThrows:IllegalArgumentException - if..
Relational Data Model -introduced by E.F. Codd(1970) -strong theoretical foundations -very simple -numerous commercial systems -represents the database as a collection of relations and integrity constraints ๋ฐ์ดํฐ๋ฒ ์ด์ค = ๊ด๊ณ์ ๋ฌด๊ฒฐ์ฑ ์ ์ฝ ์กฐ๊ฑด์ ํํ relation example ex) "student" relation with 5 tuples and 7 attributes (= in network data model&hierarchical data model 5๊ฐ์ record,rows ์ 7๊ฐ์ columns) relation data..
DBMS supports database languages that allow users to express what they want to do with database QUEL, SQL, relational algebra, query-by-example, LDL, etc. Application programs generally access databases through -procedural extension of SQL -embedding SQL in host program languages -application program interface (e.g. ODBC/JDBC) DBMS Components -two key components(query processor, storage manager)..
Schema -refers any logical or physical structure of the database -similar to the vairable type in program languages (ํ๋ก๊ทธ๋๋ฐ์ธ์ด์ type๊ณผ ์ ์ฌ) -view, logical, physical schema ex) create table student {...} =>student schema Instance -actual content of the databases for schema(at a particular point in time) -similar to the values of a vairable (๋ณ์์ ๊ฐ๊ณผ ์ ์ฌ) => ์ด๋ค ์์ ์์์ table์ ์๋ row,record ๊ฐ์ฒด๋ค Levels of Da..
DB = collection of data DBMS(Database Management System) = collection of software that allow us to define, construct, manipulate databases +provides a number of desirable funcationalities(data independence, data sharing, recovery, security, etc.) DBS(Databse System) = DB +DBMS Advantages of DBMS (Atomicity(์์์ฑ), Consistancy(์ผ๊ด์ฑ), Isolation(๋ ๋ฆฝ์ฑ), Durability(์ง์์ฑ) =>ACID!) 1.Data abstraction 2.Easy..
xv6 ์์คํ ์ฝ ๊ตฌํ ๊ณผ์ ๋ฅผ ํ๋ฉด์ ๊ณผ์ ๋ง๊ฐ์ผ๊น์ง๋ ๊น๋ํ๊ฒ ์ดํด๊ฐ ๋์ง ์์๋ ๋ถ๋ถ์ ๋ํด ์ ๋ฆฌํด ๋ณธ๋ค. ์ผ๋จ ๋ด๊ฐ ์๋ฌธ์ด์๋ ๋ถ๋ถ์ "1ํฑ๋ง๋ค ํ์ด๋จธ ์ธํฐ๋ฝํธ๊ฐ ๋ฐ์์ ํ๋ค"๊ณ ํ๋๋ฐ, 1์ด์ 100 ํฑ์ด๋ผ ํ๋ค๋ฉด ํ๋ก์ธ์ค ์ํ ์ค 1์ด์ 100๋ฒ์ ํ์ด๋จธ ์ธํฐ๋ฝํธ๊ฐ ๋ฐ์ํ ๊ฒ์ด๊ณ , ๊ทธ๋๋ง๋ค ์ ์ ๋ชจ๋์์ ์ปค๋ ๋ชจ๋๋ก์ ์ ํ์ด ์ด๋ฃจ์ด์ง๋ค๋ ๊ฒ์ด ๋ง๋ค๋ ๊ฒ์ธ๋ฐ, ์ค๋ฒํค๋๊ฐ ๊ณผ๋ํ๊ฒ ๋ฐ์ํ๋ ๊ฒ์ ์๋์ง? ์๋ค. ๊ต์๋๊ป ์ฌ์ญค๋ณธ ๋ฐ๋ก๋ ํ์ด๋จธ ์ธํฐ๋ฝํธ๋ ๋งคํฑ๋ง๋ค ๋ฐ์ํ๊ณ , ๊ทธ๋๋ง๋ค ์ปค๋๋ชจ๋๋ก์ ์ ํ์ด ์ด๋ฃจ์ด์ง๋ ๊ฒ์ด ๋ง๋ค๊ณ ํ๋ค. ( ๋ชจ๋์ค์์นญ์ด ์์ฒญ ๋น ๋ฅธ ์๊ฐ ์ฌ์ด์ ์ด๋ฃจ์ด์ง๊ธฐ ๋๋ฌธ์ ํ๋ก์ธ์ค์ ์ํ์๋์ ๊ฑฐ์ ์ํฅ์ ๋ฏธ์น์ง ์๋๋ค๊ณ ํ๋ค.) ๊ทธ๋ ์ปค๋ ๋ชจ๋์์๋ system time update,..
์์์ ๋ ผ๋ฆฌ ์ฐ์ฐ ์์์ ๋ ผ๋ฆฌ ์ฐ์ฐ์ ๊ฐ ํฝ์ ๊ฐ์ ๋ํ์ฌ ๋นํธ ๋จ์๋ก ์ด๋ฃจ์ด์ง๋ค. ๊ทธ๋ ์ด ์ค์ผ์ผ ์์์ ๊ฒฝ์ฐ, ํ ํฝ์ (1byte=8bit)์ ๊ตฌ์ฑํ๋ ์ฌ๋๊ฐ์ ๋นํธ์ ๊ฐ๊ฐ ๋ ผ๋ฆฌ์ฐ์ฐ์ด ์ด๋ฃจ์ด์ง๋ค. ์๋ฅผ ๋ค์ด ๋ ๊ฐ์ ์ ๋ ฅ ์์์์ ํน์ ์ขํ์ ์๋ ํฝ์ ์ ๊ทธ๋ ์ด์ค์ผ์ผ ๊ฐ์ด(0~255) ๊ฐ๊ฐ 110๊ณผ 200์ธ ๊ฒฝ์ฐ, ์๋์ ๊ฐ์ด ์ฐ์ฐ๋๋ค. 110 = 01101110(2) 200 = 11001000(2) 110 AND 200 01001000(2)=72 110 OR 200 11101110(2)=238 110 XOR 200 10100110(2)=166 NOT 110 10010001(2)=145 OpenCV์์๋ AND,OR,XOR,NOT ์ ๋ ผ๋ฆฌ์ฐ์ฐ ํจ์๋ฅผ ์ ๊ณตํ๋ค. cv2.bitwise_and(src1,sr..