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
    
  
  
    
  | final class CurrentUser { | |
| private init() {} | |
| static let sharedInstance = CurrentUser() | |
| var user: User? | |
| } | 
  
    
      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.util.Scanner; | |
| public class ARC004B { | |
| public static void main(String[] args) { | |
| ARC004BSolve solve = new ARC004BSolve(); | |
| solve.main(); | |
| } | |
| } | |
| class ARC004BSolve { | |
  
    
      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 Foundation | |
| import APIKit | |
| import Himotoki | |
| struct SearchRepositoryRequest: GithubRequest { | |
| typealias Response = RepositoryCollection | |
| var method: HTTPMethod { | |
| return .get | 
  
    
      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 func <| <T: Decodable>(e: Extractor, keyPath: KeyPath) throws -> T { | |
| return try e.value(keyPath) | |
| } | 
  
    
      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
    
  
  
    
  | extension GithubRequest where Response: Decodable { | |
| func response(from object: Any, urlResponse: HTTPURLResponse) throws -> Response { | |
| return try decodeValue(object) | |
| } | |
| } | 
  
    
      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
    
  
  
    
  | let request = RateLimitRequest() | |
| Session.send(request) { result in | |
| switch result { | |
| case .success(let rateLimit): | |
| print("limit: \(rateLimit.limit)") | |
| print("remaining: \(rateLimit.remaining)") | |
| case .failure(let error): | |
| print("error: \(error)") | |
| } | |
| } | 
  
    
      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 Foundation | |
| import APIKit | |
| import Himotoki | |
| struct RateLimitRequest: GithubRequest { | |
| typealias Response = RateLimit | |
| var method: HTTPMethod { | |
| return .get | 
  
    
      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 Foundation | |
| import APIKit | |
| import Himotoki | |
| protocol GithubRequest: Request { } | |
| extension GithubRequest { | |
| var baseURL: URL { | |
| return URL(string: "https://api.github.com")! | |
| } | 
  
    
      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 Solution { | |
| int[][] adj; | |
| int[] indegrees; | |
| boolean[] isConfirm; | |
| public String alienOrder(String[] words) { | |
| this.adj = new int[26][26]; | |
| this.indegrees = new int[26]; | 
  
    
      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
    
  
  
    
  | /** | |
| * Definition for binary tree with next pointer. | |
| * public class TreeLinkNode { | |
| * int val; | |
| * TreeLinkNode left, right, next; | |
| * TreeLinkNode(int x) { val = x; } | |
| * } | |
| */ | |
| public class Solution { | |
| public void connect(TreeLinkNode root) { |