본문 바로가기
반응형

Software Development45

Leetcode 271. Encode and Decode Strings 271. Encode and Decode Strings 오늘은 릿코드 271번 문제 Encode and Decode Strings 를 풀어보겠습니다. 난이도 - 중 문제설명 Design an algorithm to encode a list of strings to a string. The encoded string is then sent over the network and is decoded back to the original list of strings. Machine 1 (sender) has the function: string encode(vector strs) { // ... your code return encoded_string; } Machine 2 (receiver) has the f.. 2023. 1. 19.
Leetcode 238. Product of Array Except Self 238. Product of Array Except Self 오늘은 릿코드 238번문제입니다. 난이도 - 중 문제설명 Medium Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i]. The product of any prefix or suffix of nums is guaranteed to fit in a 32-bit integer. You must write an algorithm that runs in O(n) time and without using the division operation. Exampl.. 2023. 1. 19.
Leetcode 347. Top K Frequent Elements 오늘은 릿코드 347번 문제(Top K Frequent Elements)를 풀어보도록 하겠습니다. Medium Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order. Example 1: Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] Example 2: Input: nums = [1], k = 1 Output: [1] Constraints: 1 2023. 1. 15.
Leetcode 49. Group Anagrams 49. Group Anagrams Medium Given an array of strings strs, group the anagrams together. You can return the answer in any order. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once. Example 1: Input: strs = ["eat","tea","tan","ate","nat","bat"] Output: [["bat"],["nat","tan"],["ate","eat","tea"]] Examp.. 2023. 1. 14.
Leetcode 1. Two Sum 릿코드 1번문제 Two Sum 문제 풀이 안녕하세요! 오늘은 투썸 문제를 풀어보도록 하겠습니다. Easy Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order. Example 1: Input: nums = [2,7,11,15], target = 9 Output: [0,1] Explan.. 2023. 1. 12.
컴맹도 가능한 웹페이지 제작 HTML로 시작해보기! 안녕하세요! 오늘은 HTML 에 대해서 설명해 볼까 합니다. HTML이란 HyperText Markup Language의 약자로 웹브라우저가 이해할 수 있는 언어 입니다. 지난시간에 Visual Studio Code 를 설치해 봤는데요. 바로 이 프로그램을 통해 웹개발의 기본이 되는 웹페이지를 만들어 보겠습니다. 프로그램을 실행시키시고 왼쪽 메뉴에서 폴더를 하나 만듭니다. 폴더명을 입력하고(html) 옆의 아이콘을 눌러 파일을 생성합니다. index.html 으로 파일명을 짓습니다. 그리고 html:5 를 타이핑하게 되면 인텔리센스가 뜨면서 자동으로 기본 HTML 틀을 만들어줍니다. HTML은 태그에서 시작해서 태그로 끝난다고 해도 과언이 아닌데요. 꺽새모양 괄호안에 들어 있는 내용으로 웹브라우저에서 D.. 2023. 1. 12.
반응형