Thread: [CHALLENGE] Finding the odd byte

Results 1 to 4 of 4
  1. #1 [CHALLENGE] Finding the odd byte 
    Registered Member
    Join Date
    Jun 2013
    Posts
    68
    Thanks given
    15
    Thanks received
    37
    Rep Power
    33
    Bored today, came up with a challenge.

    Simply find which byte is the odd one out.

    Download 10164786.dat @ UppIT

    In simple terms, the file is jammed with a heap of bytes with the value of 0 and one which contains the value of 1, can you figure out which one it is? The solution is when 1 occurs.
    Reply With Quote  
     

  2. #2  
    Registered Member
    whac's Avatar
    Join Date
    Nov 2011
    Posts
    176
    Thanks given
    35
    Thanks received
    84
    Rep Power
    245
    Code:
    p File.open('./10164786.dat') { |f| f.read }.index("\x01")
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Jun 2013
    Posts
    68
    Thanks given
    15
    Thanks received
    37
    Rep Power
    33
    Quote Originally Posted by whac View Post
    Code:
    p File.open('./10164786.dat') { |f| f.read }.index("\x01")
    Quote Originally Posted by elitecodez View Post
    The solution is when 1 occurs.
    The solution isn't how to find the answer However it does prove you know how to so I'll give you a cookie for that **** it a taco I can't find the cookie smilie.
    Reply With Quote  
     

  5. #4  
    ¯̿ ̿|̿ ̿ |̶ ̶ ̶ ̶| |̶͇̿ ̶͇̿ ͇̿ Haskelle

    Join Date
    Nov 2007
    Age
    29
    Posts
    1,227
    Thanks given
    329
    Thanks received
    517
    Rep Power
    1133
    Quote Originally Posted by elitecodez View Post
    The solution isn't how to find the answer However it does prove you know how to so I'll give you a cookie for that **** it a taco I can't find the cookie smilie.
    what's the fun of that? This challenge is boring as ****.
    Monads are just Monoids in the category of Endofunctors. What is the problem?
    Costate Comonad Coalgebra is equivalent of Java's member variable update technology for haskell. Problem?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Finding the byte of a custom crown
    By Pitx in forum Help
    Replies: 5
    Last Post: 08-10-2009, 04:19 AM
  2. "The system cannot find the path specified."
    By Faceman29 in forum Tutorials
    Replies: 4
    Last Post: 08-12-2008, 10:02 PM
  3. Replies: 2
    Last Post: 08-08-2008, 06:04 AM
  4. Would you find the decompiled RS Webclient Jar file usefull?
    By newservermaker in forum RS2 Client
    Replies: 9
    Last Post: 03-21-2008, 04:00 PM
  5. Where can I find the latest silabsoft client?
    By MR. Real in forum Requests
    Replies: 6
    Last Post: 01-11-2008, 03:59 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •