This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System.Diagnostics; | |
using System; | |
public class Node : IComparable<Node> | |
{ | |
public bool walkable; |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public enum PlayerState | |
{ | |
IDLE = 0, | |
RUN, | |
CHASE, | |
ATTACK, |
This file contains 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
#include "pch.h" | |
#include <iostream> | |
#include <vector> | |
int dustinBestTrio(int friend_nodes, int friends_from[], int friends_to[]) | |
{ | |
std::vector<std::vector<int>> allfriends(friend_nodes); | |
int i = 0; | |
int f = friends_from[i]; |
This file contains 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
#include "pch.h" | |
#include <iostream> | |
#include <vector> | |
int pairs(int arr[], int n, int k) | |
{ | |
int pairCount = 0; | |
for (int i = 0; i < n; i++) | |
{ |
This file contains 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
#include "pch.h" | |
#include <iostream> | |
void swap(int* a, int* b) | |
{ | |
int t = *a; | |
*a = *b; | |
*b = t; | |
} |
This file contains 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
// Exam1.cpp : 이 파일에는 'main' 함수가 포함됩니다. 거기서 프로그램 실행이 시작되고 종료됩니다. | |
// | |
#include "pch.h" | |
#include <iostream> | |
#include <vector> | |
using namespace std; | |
struct Step |
This file contains 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
void foo(int[] array) | |
{ | |
int sum = 0; | |
int product = 1; | |
for(int i = 0; i < array.length; i++) | |
{ | |
sum += array[i]; | |
} | |
for(int i = 0; i < array.length; i++) |
This file contains 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
#include "pch.h" | |
#include <iostream> | |
using namespace std; | |
const int square = 5; | |
const int start = 1; | |
int main() | |
{ | |
int ystart = start; |
This file contains 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
long findM3(long n, long m) | |
{ | |
int c = 0; | |
long v = 1; | |
bool squared = false; | |
int va[1000]; | |
while (v * v <= n) | |
{ | |
if (v * v < n) |
NewerOlder