Sort by

recency

|

28 Discussions

|

  • + 0 comments

    Is there some way to eliminate "write here" prompts somewhere?

  • + 0 comments

    It is definitely the worst articulated problem I have encountered on HackerRank. It is by any means not obvious what is required from you, and the c++ boilerplate code already meets most of the requirements, which makes things even more confusing. Also the quality of the boilerplate code is abysmal, this thing would never go through modern code review.

  • + 0 comments
    #!/usr/bin/env python2
    
    import socket
    import threading
    
    
    def process_client_connection(connection):
        while True:
            message = connection.recv(4096)
            connection.send(message)
    
            if message == "END":
                break
    
    
    if __name__ == '__main__':
        sock = socket.socket(socket.AF_UNIX)
        sock.bind("./socket")
        sock.listen(10)
    
        while True:
            connection = sock.accept()[0]
            threading.Thread(target=process_client_connection, args=(connection,)).start()
    
  • + 0 comments

    Hi, what port should be used? Thanks!

  • + 0 comments

    Bug: Python 3 shows nothing,

    Yet Python 2 does provide sufficient hint to complete the answer.