Next-BlockChain

고정 헤더 영역

글 제목

메뉴 레이어

Next-BlockChain

메뉴 리스트

  • 홈
  • 태그
  • 분류 전체보기 (397)
    • Computer Science (5)
      • OS (3)
      • Network (1)
    • Blockchain (53)
      • Bitcoin (3)
      • Ethereum (17)
      • Cosmos (4)
      • DeFi (13)
      • DID (3)
      • NFT (7)
      • Oracle (8)
      • BlockChain Theory (25)
      • BlockChain-Core (1)
    • Dev (27)
      • React (6)
      • NodeJS (4)
      • Golang-Backend (2)
      • DevOps (2)
      • NoSQL (4)
      • Security (8)
    • Programming Language (201)
      • Go (60)
      • Solidity (40)
      • HTML (2)
      • JavaScript (97)
      • CSS (2)
    • 독서 (19)
      • 독후감 (19)
    • AI (4)

검색 레이어

Next-BlockChain

검색 영역

컨텐츠 검색

전체 글

  • 알고리즘 문제풀이 - isIsogram

    2022.12.27 by 0xRobert

  • 알고리즘 문제풀이 - modulo

    2022.12.27 by 0xRobert

  • Solidity - Fuction

    2022.12.26 by 0xRobert

  • 알고리즘 문제풀이 - superIncreasing

    2022.12.26 by 0xRobert

  • 알고리즘 문제풀이 - readVertically

    2022.12.26 by 0xRobert

  • Solidity - Data Locations

    2022.12.25 by 0xRobert

  • Solidity - Structs

    2022.12.25 by 0xRobert

  • Solidity - Enum

    2022.12.25 by 0xRobert

알고리즘 문제풀이 - isIsogram

문제 설명 문자열을 입력받아 아이소그램인지 여부를 리턴해야 합니다. 아이소그램(isogram)은 각 알파벳을 한번씩만 이용해서 만든 단어나 문구를 말합니다. 즉 입력받은 문자열 중 중복되는 것이 있으면 false, 중복되는 것이 없으면 true를 반환하면 됩니다. 입력 인자 1 : str string 타입의 공백이 없는 알파벳 문자열 출력 boolean 타입을 리턴해야 합니다. 주의 사항 빈 문자열을 입력받은 경우, true를 리턴해야 합니다. 대소문자는 구별하지 않습니다. 입출력 예시 let output = isIsogram('aba'); console.log(output); // false output = isIsogram('Dermatoglyphics'); console.log(output); //..

Programming Language/JavaScript 2022. 12. 27. 19:15

알고리즘 문제풀이 - modulo

문제설명 : num1과 num2를 입력받아서 num1을 num2로 나눈 나머지를 리턴합니다. 단 "/"와 "%"연산자는 사용할 수 없습니다. 입력 인자 1 : num1 number 타입의 정수 (num1 >= 0) 인자 2 : num2 number 타입의 정수 (num2 >= 0) 출력 number 타입을 리턴해야 합니다. 주의 사항 나눗셈(/), 나머지(%) 연산자 사용은 금지됩니다. 0은 어떤 수로 나누어도 나머지가 0입니다. 어떤 수도 0으로 나눌 수 없습니다. 이 경우 'Error: cannot divide by zero'를 리턴해야 합니다. 입출력 예시 let output = modulo(25, 4); console.log(output); // --> 1 코드 function modulo(num..

Programming Language/JavaScript 2022. 12. 27. 19:10

Solidity - Fuction

There are several ways to return outputs from a function. 함수에서 출력을 반환하는 방법에는 여러 가지가 있습니다. Public functions cannot accept certain data types as inputs or outputs 공용 기능은 특정 데이터 유형을 입력 또는 출력으로 허용할 수 없습니다. // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; contract Function { // Functions can return multiple values. // 함수들은 여러 변수 값을 반환합니다. function returnMany() public pure returns ( uint, bool..

Programming Language/Solidity 2022. 12. 26. 22:27

알고리즘 문제풀이 - superIncreasing

문제설명 : 수를 요소로 갖는 배열을 입력받아 각 요소들이 그 이전 요소들의 합보다 큰지 확인하고 크면 "true"를 리턴, 작으면 "false"를 리턴하는 함수를 작성하면 됩니다.~ 입력 인자 1 : arr 수를 요소로 갖는 배열 arr[i]는 정수 출력 boolean 타입을 리턴해야 합니다. arr[i]는 arr[0]부터 arr[i-1]까지의 합보다 커야 합니다. 입출력 예시 let output = superIncreasing([1, 3, 6, 13, 54]); console.log(output); // --> true output = superIncreasing([1, 3, 5, 9]); console.log(output); // --> false 풀이코드 설명 function superIncrea..

Programming Language/JavaScript 2022. 12. 26. 22:22

알고리즘 문제풀이 - readVertically

문제 설명 : 문자열을 요소로 갖는 배열을 입력받은 뒤 문자열을 세로로 읽었을 때의 문자열을 리턴해야한다. 입력 인자 1 : arr string 타입을 요소로 갖는 배열 출력 string 타입을 리턴해야 합니다. 주의 사항 각 문자열의 길이는 다양합니다. 각 문자의 위치를 행, 열로 나타낼 경우, 비어있는 (행, 열)은 무시합니다. 입출력 예시 let input = [ // 'hello', 'wolrd', ]; let output = readVertically(input); console.log(output); // --> 'hweolllrod' input = [ // 'hi', 'wolrd', ]; output = readVertically(input); console.log(output); // --..

Programming Language/JavaScript 2022. 12. 26. 22:15

Solidity - Data Locations

Data Locations - Storage, Memory and Calldata Variables are declared as either storage, memory or calldata to explicitly specify the location of the data. storage - variable is a state variable (store on blockchain) memory - variable is in memory and it exists while a function is being called calldata - special data location that contains function arguments 데이터 위치 - 스토리지, 메모리 및 통화 데이터 변수는 데이터의 위..

Programming Language/Solidity 2022. 12. 25. 10:58

Solidity - Structs

You can define your own type by creating a struct. Struct를 만들어서 사용자 고유의 유형을 만들 수 있습니다.(정의할 수 있습니다.) They are useful for grouping together related data. 관련 데이터를 그룹화하는 데 유용합니다. Structs can be declared outside of a contract and imported in another contract. Struct는 계약 외부에서 선언하고 다른 계약으로 가져올 수 있습니다. // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; contract Todos { struct Todo { string text; b..

Programming Language/Solidity 2022. 12. 25. 10:53

Solidity - Enum

Enum Solidity supports enumerables and they are useful to model choice and keep track of state. 솔리디티는 enum(열거형)을 지원합니다. 그리고 선택을 모델링하고 상태를 추적하는 데 유용합니다. Enums can be declared outside of a contract. 열거형은 계약 외부에서 선언할 수 있습니다. // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; contract Enum { // Enum representing shipping status // 상태를 표현하는 Enum enum Status { Pending, Shipped, Accepted, Rejecte..

Programming Language/Solidity 2022. 12. 25. 10:44

추가 정보

인기글

최신글

페이징

이전
1 ··· 38 39 40 41 42 43 44 ··· 50
다음
TISTORY
Next-BlockChain © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바