Note that the last one is number zero. Not alphabet o
This file contains hidden or 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
import java.util.*; | |
class Solution { | |
private final int NON_COLORING_AREA = 0; | |
private final int VISITED = -1; | |
public int[] solution(int m, int n, int[][] picture) { | |
int numberOfArea = 0; | |
int maxSizeOfOneArea = 0; | |
for (int row = 0; row < picture.length; row++) { | |
for (int col = 0; col < picture[row].length; col++) { |
This file contains hidden or 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
import java.util.*; | |
class Solution { | |
private final int NON_COLORING_AREA = 0; | |
private final int VISITED = -1; | |
public int[] solution(int m, int n, int[][] pictureOrigin) { | |
int[][] picture = new int[pictureOrigin.length][pictureOrigin[0].length]; | |
// 배열 복사 *** | |
for (int row = 0; row < picture.length; row++) { | |
for (int col = 0; col < picture[row].length; col++) { |
This file contains hidden or 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
from urllib.request import urlopen, Request | |
from bs4 import BeautifulSoup | |
import numpy as np | |
headers = {"User-Agent":"Mozilla"} | |
html = urlopen(Request("https://toonkor.club", headers={'User-Agent': 'Mozilla'})) | |
blackSiteDB = list() | |
blackSiteTagDB = list() |
아래의 코드는 기본적으로 작동이 되지 않는다. 왜일까? 그것은 바로 포인터에 있다. 배열의 경우에는 배열 이름 자체가 포인터. 메모리 주소 값이기 때문에 전달할 경우 정상적으로 처리가 되나 여기서는 포인터를 넘겨주는 것 '처럼'보이지만 실제로는 쓰레기값을 넘겨준다. 그러므로 포인터를 인자로 넘기고 함수에서 다루기 위해선 포인터의 주소를 넘겨 포인터 그 자체를 다루어야 한다.
This file contains hidden or 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
<resources> | |
<!-- Base application theme. --> | |
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | |
<!-- Customize your theme here. --> | |
<!-- blah blah blah.... --> | |
<item name="windowActionBar">false</item> | |
<item name="windowNoTitle"><true</item> | |
<!-- And add toolbar in layout --> | |
</style> |