본문 바로가기

DataStructure

(75)
Aracade Intro #47 isMAC48Address. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, 예제, example, c++ java c# scalar Aracade Intro #47 isMAC48Address. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, 예제, example, c++ java c# scalar Q. A media access control address (MAC address) is a unique identifier assigned to network interfaces for communications on the physical network segment. The standard (IEEE 802) format for printing MAC-48 addresses in human-friendly form is six groups of two hexadecimal digits..
JavaFx, how to show actual size image bigger than pane using scroll, 실제 크기 이미지를 스크롤바 사용하여 보여주는 방법, Java/cpp/kotlin/gui JavaFx, how to show actual size image bigger than pane using scroll, 실제 크기 이미지를 스크롤바 사용하여 보여주는 방법, Java/cpp/kotlin/gui -기본틀 / imageview-image / translate -> tomorrow 기본적으로 JavaFx를 SceneBuilder 를 사용해서 최초 레이아웃을 만들어두고 열었다고 가정..안되어 있다면 ( 여기 ) 내일 포스팅 예정 JavaFx ui 쌓이는 순서가 Stage 위에 Scene 위에 각종 Component(Pane, Button etc..) 이 올라가는데, 위의 기본 틀은 Stage -> Scene -> Pane 이 올라가서 최초 바탕을 띄운 것 까지이다. 이제 ImageView 위..
Selenium 셀레늄 usage/side effects/dosage 효능/부작용/성인,소아 용법 Selenium 셀레늄 usage/side effects/dosage 효능/부작용/성인,소아 용법 원글 보기 ( 여기 )Origin article ( Here ) Selenium is a mineral found in the soil. Selenium naturally appears in water and some foods. While people only need a very small amount, selenium plays a key role in the metabolism. 셀레늄은 흙에서 찾을수 있는 미네랄이다. 셀레늄은 자연적으로 물이나 몇몇의 음식에서 나타난다. 사람이 필요한 양은 매우 소량이지만, 신체대사에 필수적인 역할을 한다. Why do people take selenium? 셀레늄..
Aracade Intro #46 electionsWinners. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, 예제, example, c++ java c# scalar Aracade Intro #46 electionsWinners. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, 예제, example, c++ java c# scalar Q. Elections are in progress! Given an array of the numbers of votes given to each of the candidates so far, and an integer k equal to the number of voters who haven't cast their vote yet, find the number of candidates who still have a chance to win the election. The winner ..
Aracade Intro #45 buildPalindrome. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, 예제, example, c++ java c# scalar Aracade Intro #45 buildPalindrome. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, 예제, example, c++ java c# scalar Q. Given a string, find the shortest possible string which can be achieved by adding characters to the end of initial string to make it a palindrome. 주어진 문자열에서, 가장 적은수의 문자를 추가해서 회문 문자가 가능하게 되는 문자열를 찾아라. ( 회문 - 수박이박수 처럼 앞뒤로 읽어도 같은 것 ) e.g. Input -> st = "abcdc" Output -> build..
How to convert file to byte array (byte[]) example, 파일 객체 바이트로 변환하기 예제코드, java/cpp/c++/scalar How to convert file to byte array (byte[]) example, 파일 객체 바이트로 변환하기 예제코드, java/cpp/c++/scalar 파일 객체를 만들어주고, 파일객체의 path를 java.nio.file.Files 의 readAllBytes 함수에 넣어 사용한다. Make file object first, and use that file path in readAllBytes method in java.nio.file.Files Example code...예제코드 byte[] array = Files.readAllBytes(new File("file/path.txt").toPath()); Something else you might like..? 2018/12/18 - ..
Aracade Intro #44 findEmailDomain. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, 예제, example, c++ java c# scalar Aracade Intro #44 findEmailDomain. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, 예제, example, c++ java c# scalar Q. An email address such as "John.Smith@example.com" is made up of a local part ("John.Smith"), an "@" symbol, then a domain part ("example.com"). The domain name part of an email address may only consist of letters, digits, hyphens and dots. The local part, however, also all..
How to access controller from existing Pane in JavaFX, pane에서 해당 controller로 접근하기, java/cpp/c++/fx/gui How to access controller from existing Pane in JavaFX, pane에서 해당 controller로 접근하기, java/cpp/c++/fx/gui Q. Pane에서 직접 해당 Controller를 뽑아낼 수 없다.Pane 에서 Scene을 통해 FxmlLoader를 뽑아내는 방법이 있고, 그 후 loader를 통해서Controller를 가져올 수 있다. 예제 코드를 보자 We cannot get Controller from Pane directly, so i struggled some. After bringing Scene, then we could get FxmlLoader from Scene. So it can get Controller. e.g. FXMLLoad..