전체 글107 [2019.01.30] Kangaroo Problem You are choreographing a circus show with various animals. For one act, you are given two kangaroos on a number line ready to jump in the positive direction (i.e, toward positive infinity).The first kangaroo starts at location and moves at a rate of meters per jump.The second kangaroo starts at location and moves at a rate of meters per jump.You have to figure out a way to get both kanga.. 2019. 1. 30. [2019.01.29] Apple and Orange Problem Sam's house has an apple tree and an orange tree that yield an abundance of fruit. In the diagram below, the red region denotes his house, where is the start point, and is the endpoint. The apple tree is to the left of his house, and the orange tree is to its right. You can assume the trees are located on a single point, where the apple tree is at point , and the orange tree is at point .. 2019. 1. 29. [2019.01.28] Grading Students Problem HackerLand University has the following grading policy:Every student receives a in the inclusive range from to .Any less than is a failing grade.Sam is a professor at the university and likes to round each student's according to these rules:If the difference between the and the next multiple of is less than , round up to the next multiple of .If the value of is less than , no rounding oc.. 2019. 1. 28. [JavaScript공부 - 7] Type Conversions(타입 변환) 대부분, 연산자와 함수들은 자동으로 파라미터를 받을 때 적절한 타입으로 변환해 줌. 이런걸 "Type Conversions(타입 변환)"이라고 부름. 예를 들어, alert는 자동으로 값을 메세지로 보여주기 위해서 string으로 자동 변환 하여 보여줌. 수학 연산자 같은 경우에는 값들을 number 타입으로 변환함. 물론, 원하는 타입으로 값을 명시적으로 바꿔주는 경우도 있음. ToString String 변환은 값을 String 타입으로 바꾸어야 할 때, 일어남. 예를 들어, alert(value)는 값을 String으로 바꾸고 그 값을 메세지로 보여줌. 그러나 특정 값을 String으로 바꾸는 함수가 있는데, String(value) 함수임. 12345let value = true;alert(typ.. 2019. 1. 25. [2019.01.25] Time Conversion Problem Given a time in -hour AM/PM format, convert it to military (24-hour) time.Note: Midnight is 12:00:00AM on a 12-hour clock, and 00:00:00 on a 24-hour clock. Noon is 12:00:00PM on a 12-hour clock, and 12:00:00 on a 24-hour clock.Function DescriptionComplete the timeConversion function in the editor below. It should return a new string representing the input time in 24 hour format.timeConve.. 2019. 1. 25. [JavaScript공부 - 6] Data types(데이터 타입) 자바스크립트에서 변수는 어떤 데이터를 담고 있음. 하나의 변수는 어떤 상황에서는 String이 될 수 있고 또 다른 상황에서는 number가 될 수 있음. 12let message = "hello";message = 123456;cs 이와 같이 한 변수가 String이나 number가 될 수 있는 특성을 가진 프로그래밍 언어를 "dynamically typed(동적 타입 지정)"이라고 함. 동적 타입 지정은 데이터 타입은 있지만 변수가 데이터 타입 중에 하나에 종속되지 않는 특성을 이야기 함. 자바스크립트에는 7가지 기본 데이터 타입이 있음. 이번 포스팅과 다음 포스팅에서 이에 대해 설명할 예정! A number 12let n = 123;n = 12.345;cs 위와 같이 number 타입은 정수와 소수.. 2019. 1. 24. [2019.01.24] Birthday Cake Candles Problem You are in charge of the cake for your niece's birthday and have decided the cake will have one candle for each year of her total age. When she blows out the candles, she’ll only be able to blow out the tallest ones. Your task is to find out how many candles she can successfully blow out.For example, if your niece is turning years old, and the cake will have candles of height , , , , she.. 2019. 1. 24. [2019.01.23] Bitwise AND Problem Objective Welcome to the last day! Today, we're discussing bitwise operations. Check out the Tutorial tab for learning materials and an instructional video!Task Given set . Find two integers, and (where ), from set such that the value of is the maximum possible and also less than a given integer, . In this case, represents the bitwise AND operator.Input FormatThe first line contains an i.. 2019. 1. 23. [2019.01.22] RegEx, Patterns, and Intro to Databases Problem Objective Today, we're working with regular expressions. Check out the Tutorial tab for learning materials and an instructional video!Task Consider a database table, Emails, which has the attributes First Name and Email ID. Given rows of data simulating the Emails table, print an alphabetically-ordered list of people whose email address ends in .Input FormatThe first line contains an int.. 2019. 1. 22. 이전 1 ··· 4 5 6 7 8 9 10 ··· 12 다음