This file contains hidden or 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
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.AsynchronousFileChannel; | |
import java.nio.channels.CompletionHandler; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.locks.ReentrantLock; |
This file contains hidden or 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
package hello.itemservice.repository.jdbctemplate; | |
import hello.itemservice.domain.Item; | |
import hello.itemservice.repository.ItemRepository; | |
import hello.itemservice.repository.ItemSearchCond; | |
import hello.itemservice.repository.ItemUpdateDto; | |
import lombok.extern.slf4j.Slf4j; | |
import org.springframework.dao.EmptyResultDataAccessException; | |
import org.springframework.jdbc.core.BeanPropertyRowMapper; | |
import org.springframework.jdbc.core.JdbcTemplate; |
This file contains hidden or 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
package hello.itemservice.repository.jdbctemplate; | |
import hello.itemservice.domain.Item; | |
import hello.itemservice.repository.ItemRepository; | |
import hello.itemservice.repository.ItemSearchCond; | |
import hello.itemservice.repository.ItemUpdateDto; | |
import lombok.extern.slf4j.Slf4j; | |
import org.springframework.beans.propertyeditors.StringArrayPropertyEditor; | |
import org.springframework.dao.DataAccessException; | |
import org.springframework.dao.EmptyResultDataAccessException; |
This file contains hidden or 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 <bits/stdc++.h> | |
using namespace std; | |
class SinglyLinkedListNode { | |
public: | |
int data; | |
SinglyLinkedListNode *next; | |
SinglyLinkedListNode(int node_data) { |
This file contains hidden or 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 <bits/stdc++.h> | |
using namespace std; | |
class SinglyLinkedListNode { | |
public: | |
int data; | |
SinglyLinkedListNode *next; | |
SinglyLinkedListNode(int node_data) { |
This file contains hidden or 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 <bits/stdc++.h> | |
using namespace std; | |
class SinglyLinkedListNode { | |
public: | |
int data; | |
SinglyLinkedListNode *next; | |
SinglyLinkedListNode(int node_data) { |
This file contains hidden or 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 <bits/stdc++.h> | |
using namespace std; | |
class SinglyLinkedListNode { | |
public: | |
int data; | |
SinglyLinkedListNode *next; | |
SinglyLinkedListNode(int node_data) { |
This file contains hidden or 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 <bits/stdc++.h> | |
using namespace std; | |
class SinglyLinkedListNode { | |
public: | |
int data; | |
SinglyLinkedListNode *next; | |
SinglyLinkedListNode(int node_data) { |
This file contains hidden or 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 <bits/stdc++.h> | |
using namespace std; | |
class SinglyLinkedListNode { | |
public: | |
int data; | |
SinglyLinkedListNode *next; | |
SinglyLinkedListNode(int node_data) { |
This file contains hidden or 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 <bits/stdc++.h> | |
using namespace std; | |
// Complete the matchingStrings function below. | |
vector<int> matchingStrings(vector<string> strings, vector<string> queries) { | |
vector<int> vRet; | |
for(auto it : queries) { | |
int iCount = count_if(strings.begin(), strings.end(), [&](string s) { | |
return it == s; |
NewerOlder