전체 글 (2344) 썸네일형 리스트형 (C++) - LeetCode (easy) 387. First Unique Character in a String https://leetcode.com/problems/first-unique-character-in-a-string/description/ First Unique Character in a String - LeetCode Can you solve this real interview question? First Unique Character in a String - Given a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1. Example 1: Input: s = "leetcode" Output: 0 Example 2: leetcode.com 간단 구현 문제.. (C++) - LeetCode (easy) 383. Ransom Note https://leetcode.com/problems/ransom-note/description/ Ransom Note - LeetCode Ransom Note - Given two strings ransomNote and magazine, return true if ransomNote can be constructed by using the letters from magazine and false otherwise. Each letter in magazine can only be used once in ransomNote. Example 1: Input: ransomNote = "a" leetcode.com 자료구조를 이용한 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 magazine에 나온 alph.. (C++) - LeetCode (easy) 367. Valid Perfect Square https://leetcode.com/problems/valid-perfect-square/description/ Valid Perfect Square - LeetCode Can you solve this real interview question? Valid Perfect Square - Given a positive integer num, return true if num is a perfect square or false otherwise. A perfect square is an integer that is the square of an integer. In other words, it is the product o leetcode.com 가우스의 제곱합 공식을 이용한 문제였습니다. 📕 풀이방법 .. WebSocket으로 web API 만드는게 이점이 있을까? 🍳머리말 우리는 web api만들 때 WebSocket 또는 HTTP로 작성하곤 합니다. 📕설명 📔 websocket으로 web api를 만드는게 무슨 이점이 있니? 📑 실시간 통신 HTTP 요청과 달리 WebSocket은 서버와 클라이언트 간 지속적인 양방향 통신을 지원합니다. 이를 통해 실시간으로 데이터를 전송하고 수신할 수 있습니다. 이는 실시간 채팅, 게임, 주식 시장 등 실시간 정보가 중요한 애플리케이션에서 매우 유용합니다. 📑 감소된 지연 시간 HTTP 요청은 클라이언트에서 요청을 보내고 서버가 응답을 보내는 순간까지 시간이 걸립니다. 이러한 지연 시간은 WebSocket을 사용하면 줄어들 수 있습니다. WebSocket을 사용하면 서버에서 전송되는 데이터를 클라이언트에서 실시간으로 수신할 수.. (Java) - Gson으로 Json 다루기 🍳머리말 Gson은 무엇인지 간단히 알아보고 간단한 예제 code를 살펴보는 글입니다. 📕 Gson Google에서 만든 open source java library입니다. https://github.com/google/gson GitHub - google/gson: A Java serialization/deserialization library to convert Java Objects into JSON and back A Java serialization/deserialization library to convert Java Objects into JSON and back - GitHub - google/gson: A Java serialization/deserialization library to .. (C++) - LeetCode (easy) 350. Intersection of Two Arrays II https://leetcode.com/problems/intersection-of-two-arrays-ii/description/ Intersection of Two Arrays II - LeetCode Intersection of Two Arrays II - Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear as many times as it shows in both arrays and you may return the result in any order. Example 1: Input leetcode.com 전수조사 문제였습니다. 📕 풀이.. (C++) - LeetCode (easy) 349. Intersection of Two Arrays https://leetcode.com/problems/intersection-of-two-arrays/description/ Intersection of Two Arrays - LeetCode Can you solve this real interview question? Intersection of Two Arrays - Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must be unique and you may return the result in any order. Example 1: In leetcode.com 간단 전수조사 문제였습니다. 📕 풀이방법 .. (C++) - LeetCode (easy) 345. Reverse Vowels of a String https://leetcode.com/problems/reverse-vowels-of-a-string/description/ Reverse Vowels of a String - LeetCode Can you solve this real interview question? Reverse Vowels of a String - Given a string s, reverse only all the vowels in the string and return it. The vowels are 'a', 'e', 'i', 'o', and 'u', and they can appear in both lower and upper cases, more than onc leetcode.com 문자열 구현 문제였습니다. 📕 풀이방.. 이전 1 ··· 81 82 83 84 85 86 87 ··· 293 다음