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
| object BestSum extends App { | |
| def bestSum(n: Int, coins: Array[Int]): Array[Int] = { | |
| if (n == 0) return Array[Int]() | |
| if (n < 0) return null | |
| var shortest: Array[Int] = null; | |
| for (coin <- coins) { |
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
| ~ cat .gitconfig-personal | |
| [user] | |
| signingkey = XXXXXXXXXX | |
| name = Renan Reis Martins de Paula | |
| email = renanreismartins@gmail.com | |
| [core] | |
| sshCommand = "ssh -i ~/.ssh/id_rsa_personal" | |
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
| public class OrderCreationController { | |
| private final OrderRepository orderRepository; | |
| private final ProductCatalog productCatalog; | |
| public OrderCreationController(OrderRepository orderRepository, ProductCatalog productCatalog) { | |
| this.orderRepository = orderRepository; | |
| this.productCatalog = productCatalog; | |
| } | |
| public Response post(List<Item> requests) { |
OlderNewer