Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Programming Challenge (Out-of-Date)
New Posts  All Forums:Forum Nav:

Programming Challenge (Out-of-Date) - Page 3  

Poll Results: Are you interested in participating in and/or helping organise and post these programming challenges?

 
  • 100% (2)
    I want to participate.
  • 0% (0)
    I want to contribute by helping posting and organise these challenges.
  • 0% (0)
    I'll only take part if other people are willing to participate.
  • 0% (0)
    I can help and participate - I love programming!
  • 0% (0)
    I do not wish to participate or help.
2 Total Votes  
post #21 of 306
I'm now in my third iteration of a spell checker. The first was only in C, using C strings, the second was in C++ but with out the <string> class, so we had to write our own, and our own ordered container. Now we get to use all of the standard library, but have tons of new features. Ugh... so much work. In DB class we're simulating a database using C++. And in my Java class I have some new project out but I didn't go to class so I have no idea what it is .

3 programming classes = getting owned. Off to the library to study for my DB exam tomorrow
It's about time!
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @3.3Ghz Gigabyte EP45-UD3P Sapphire 2900Pro Flashed to XT 4Gb Gskill 1066Mhz PK's 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 320Gb & WD Black 640Gb Lite On Vista Business and VMWare Ubuntu Acer AL2223W 22" 
KeyboardPowerCaseMouse
Ergonomic 4000 Corsair HX 620W CM 690 G5 
  hide details  
It's about time!
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @3.3Ghz Gigabyte EP45-UD3P Sapphire 2900Pro Flashed to XT 4Gb Gskill 1066Mhz PK's 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 320Gb & WD Black 640Gb Lite On Vista Business and VMWare Ubuntu Acer AL2223W 22" 
KeyboardPowerCaseMouse
Ergonomic 4000 Corsair HX 620W CM 690 G5 
  hide details  
post #22 of 306
Here's my response- its written for the Java Console. Put this into Eclipse or something, compile, and run...it'll do the job. You I know there's a more efficient way to manage the encoding key for decoding text, but i don't really have a lot of time right now (exams for high school).

import java.util.*;
public class Encode
{

static Scanner scan;
public static void main(String[] args)
{
final int tSize = 200;
scan = new Scanner(System.in);
System.out.println("Would you like to <1> Encode or <2> Decode a message?");
if(scan.nextInt()==1)
encode(tSize);
else
decode(tSize);
}
public static void encode(int tableSize)
{
Hashtable<Character, Character> table = new Hashtable<Character, Character>();
table.put((char)0, (char)tableSize);
for(int i=1; i<tableSize-1; i++)
table.put((char)i, (char)(i+1));
String input="", output="";
System.out.println("Hey, input a string!");
scan = new Scanner(System.in);
input = scan.nextLine();
for(int i=0; i<input.length(); i++)
{
output+=""+table.get(input.charAt(i));
}
System.out.println("This is the encoded text: "+output);
}
public static void decode(int tableSize)
{
Hashtable<Character, Character> table = new Hashtable<Character, Character>();
table.put((char)tableSize, (char)0);
for(int i=2; i<tableSize; i++)
table.put((char)i, (char)(i-1));
String input="", output="";
System.out.println("Hey, input an encoded string!");
scan=new Scanner(System.in);
input = scan.nextLine();
for(int i=0; i<input.length(); i++)
{
output+=""+table.get(input.charAt(i));
}
System.out.println("This is the decoded text: "+output);
}

}

Oh crap...the indents are screwed up. Lemme zip it up real quick
3 Mile Island
(14 items)
 
  
CPUMotherboardGraphicsRAM
i7 3820 Asus Sabertooth x79 Sapphire 290x Tri-X OC 2x8gb G.Skill RipjawsX DDR3 1600  
Hard DriveOptical DriveCoolingOS
Samsung 830 SSD LG Blu-Ray Burner Noctua NH-D14 SE2011 Windows 10 Pro 
MonitorKeyboardPowerCase
27" Asus TN 1900x1200 Logitech Slimline PC P&C 750w Silencer Cooler Master HAF-X 
Mouse
Logitech MX518 
  hide details  
3 Mile Island
(14 items)
 
  
CPUMotherboardGraphicsRAM
i7 3820 Asus Sabertooth x79 Sapphire 290x Tri-X OC 2x8gb G.Skill RipjawsX DDR3 1600  
Hard DriveOptical DriveCoolingOS
Samsung 830 SSD LG Blu-Ray Burner Noctua NH-D14 SE2011 Windows 10 Pro 
MonitorKeyboardPowerCase
27" Asus TN 1900x1200 Logitech Slimline PC P&C 750w Silencer Cooler Master HAF-X 
Mouse
Logitech MX518 
  hide details  
post #23 of 306
Ok it should be here...unzip and open with Eclipse
3 Mile Island
(14 items)
 
  
CPUMotherboardGraphicsRAM
i7 3820 Asus Sabertooth x79 Sapphire 290x Tri-X OC 2x8gb G.Skill RipjawsX DDR3 1600  
Hard DriveOptical DriveCoolingOS
Samsung 830 SSD LG Blu-Ray Burner Noctua NH-D14 SE2011 Windows 10 Pro 
MonitorKeyboardPowerCase
27" Asus TN 1900x1200 Logitech Slimline PC P&C 750w Silencer Cooler Master HAF-X 
Mouse
Logitech MX518 
  hide details  
3 Mile Island
(14 items)
 
  
CPUMotherboardGraphicsRAM
i7 3820 Asus Sabertooth x79 Sapphire 290x Tri-X OC 2x8gb G.Skill RipjawsX DDR3 1600  
Hard DriveOptical DriveCoolingOS
Samsung 830 SSD LG Blu-Ray Burner Noctua NH-D14 SE2011 Windows 10 Pro 
MonitorKeyboardPowerCase
27" Asus TN 1900x1200 Logitech Slimline PC P&C 750w Silencer Cooler Master HAF-X 
Mouse
Logitech MX518 
  hide details  
post #24 of 306
Quote:
Originally Posted by BFRD View Post
Ok. The encoder challenge is over. Stay tuned for the next installment. Thanks to everyone that participated.
Just stumbled into the thread, I'll look forward to the next installment. By the way, for anyone that was curious, the specific name of that type of cipher is called a "ceasar shift" ... because Julius Ceasar (supposedly) used a three character shift pattern as a means of communicating securely with his generals. :shrug:
My "Dev" box...
(13 items)
 
  
CPUMotherboardGraphicsRAM
C2Q Q6600 G0 SLACR (lapped) GIGABYTE GA-EP45-UD3P GIGABYTE 8800-GTX 768MB (4) 2GB OCZ (OCZ2F8004GK) 
Hard DriveOptical DriveOSMonitor
(2) WD Caviar WD7500AAKS 750GB (2) Samsung SH-203B 20X DVD±R DVD Burner Windows Vista x64 SP1 (2) Samsung 226BW "S" 2ms (GTG) 700:1(DC 3000:1) 
KeyboardPowerCaseMouse
Logitech G15 Ultra-X3 1000W ULT40064 SLi Ready SilverStone Temjin TJ09-SW Logitech G5 
  hide details  
My "Dev" box...
(13 items)
 
  
CPUMotherboardGraphicsRAM
C2Q Q6600 G0 SLACR (lapped) GIGABYTE GA-EP45-UD3P GIGABYTE 8800-GTX 768MB (4) 2GB OCZ (OCZ2F8004GK) 
Hard DriveOptical DriveOSMonitor
(2) WD Caviar WD7500AAKS 750GB (2) Samsung SH-203B 20X DVD±R DVD Burner Windows Vista x64 SP1 (2) Samsung 226BW "S" 2ms (GTG) 700:1(DC 3000:1) 
KeyboardPowerCaseMouse
Logitech G15 Ultra-X3 1000W ULT40064 SLi Ready SilverStone Temjin TJ09-SW Logitech G5 
  hide details  
post #25 of 306
When is the next challenge comming? These look awfully easy . How about a 24 hour challenge?
UberRig
(13 items)
 
  
CPUMotherboardGraphicsRAM
C2D E8200 @ 3.75ghz (1.375v, 468 *4 = 1875mhz FSB) ASUS P5N-E SLI (650i) EVGA 9600 GT (KO Edition) OCZ 2GB Dual Channel Platinum Revision 2 X (2x1GB) 
Hard DriveOptical DriveOSMonitor
WD Caviar 250gb + 80gb Sony DVDRW Vista x64/Mint x64 Philips Brilliance (20" LCD) 
PowerCase
Huntkey Green Star 500w Thermaltake Soprano 
  hide details  
UberRig
(13 items)
 
  
CPUMotherboardGraphicsRAM
C2D E8200 @ 3.75ghz (1.375v, 468 *4 = 1875mhz FSB) ASUS P5N-E SLI (650i) EVGA 9600 GT (KO Edition) OCZ 2GB Dual Channel Platinum Revision 2 X (2x1GB) 
Hard DriveOptical DriveOSMonitor
WD Caviar 250gb + 80gb Sony DVDRW Vista x64/Mint x64 Philips Brilliance (20" LCD) 
PowerCase
Huntkey Green Star 500w Thermaltake Soprano 
  hide details  
post #26 of 306
Quote:
Originally Posted by Butterbum View Post
When is the next challenge comming? These look awfully easy . How about a 24 hour challenge?

Yes yes!
RAWR
(13 items)
 
Home Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7-4790k msi z97 gaming 7 gtx 760 4gb 32GB GSkill  
Hard DriveHard DriveCoolingOS
Kingston HyperX 3K 120GB SSD Hitachi 2TB Cooler Master Hyper 212+ Windows 8.1 Pro 
MonitorKeyboardPowerCase
Vizio M492-b2 Logitech Wireless  Corsair HX620 NZXT Phantom White 
Mouse
Logitech Wireless 
  hide details  
RAWR
(13 items)
 
Home Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7-4790k msi z97 gaming 7 gtx 760 4gb 32GB GSkill  
Hard DriveHard DriveCoolingOS
Kingston HyperX 3K 120GB SSD Hitachi 2TB Cooler Master Hyper 212+ Windows 8.1 Pro 
MonitorKeyboardPowerCase
Vizio M492-b2 Logitech Wireless  Corsair HX620 NZXT Phantom White 
Mouse
Logitech Wireless 
  hide details  
post #27 of 306
Quote:
Originally Posted by hometoast View Post
Yes yes!
If you could pull enough people together for a 24h session i could moderate it and come up with a few challenges, ive done my fair share of them and know a few good ones
UberRig
(13 items)
 
  
CPUMotherboardGraphicsRAM
C2D E8200 @ 3.75ghz (1.375v, 468 *4 = 1875mhz FSB) ASUS P5N-E SLI (650i) EVGA 9600 GT (KO Edition) OCZ 2GB Dual Channel Platinum Revision 2 X (2x1GB) 
Hard DriveOptical DriveOSMonitor
WD Caviar 250gb + 80gb Sony DVDRW Vista x64/Mint x64 Philips Brilliance (20" LCD) 
PowerCase
Huntkey Green Star 500w Thermaltake Soprano 
  hide details  
UberRig
(13 items)
 
  
CPUMotherboardGraphicsRAM
C2D E8200 @ 3.75ghz (1.375v, 468 *4 = 1875mhz FSB) ASUS P5N-E SLI (650i) EVGA 9600 GT (KO Edition) OCZ 2GB Dual Channel Platinum Revision 2 X (2x1GB) 
Hard DriveOptical DriveOSMonitor
WD Caviar 250gb + 80gb Sony DVDRW Vista x64/Mint x64 Philips Brilliance (20" LCD) 
PowerCase
Huntkey Green Star 500w Thermaltake Soprano 
  hide details  
post #28 of 306
I'd love to start some more challenges. We'd need to have some that are fairly hard and some that can be easy as not everyone is at the same level here and we want to include as many people as possible. Post up some possible challenges and we can move forward from there. A 24 hour challenge sounds fun too.
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
post #29 of 306
Why not use the ACM programming contest stuff? One of my profs has a bunch of the problem sets on his school web space, but you'd have to trust people not to cheat and look at the answers.
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
3800x2 DFI NF4 SLI-D HD4850 2gb GSkill ZX 
Hard DriveOSMonitorPower
6+TB of insanity XP Pro L2410NM + DYLM24D6 Corsair 750TX 
CaseMouse
Rocketfish MX 510 
  hide details  
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
3800x2 DFI NF4 SLI-D HD4850 2gb GSkill ZX 
Hard DriveOSMonitorPower
6+TB of insanity XP Pro L2410NM + DYLM24D6 Corsair 750TX 
CaseMouse
Rocketfish MX 510 
  hide details  
post #30 of 306
OOoooRR! I could post some problems I have *cough* at work

I'm not lazy! I'm efficient!
RAWR
(13 items)
 
Home Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7-4790k msi z97 gaming 7 gtx 760 4gb 32GB GSkill  
Hard DriveHard DriveCoolingOS
Kingston HyperX 3K 120GB SSD Hitachi 2TB Cooler Master Hyper 212+ Windows 8.1 Pro 
MonitorKeyboardPowerCase
Vizio M492-b2 Logitech Wireless  Corsair HX620 NZXT Phantom White 
Mouse
Logitech Wireless 
  hide details  
RAWR
(13 items)
 
Home Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7-4790k msi z97 gaming 7 gtx 760 4gb 32GB GSkill  
Hard DriveHard DriveCoolingOS
Kingston HyperX 3K 120GB SSD Hitachi 2TB Cooler Master Hyper 212+ Windows 8.1 Pro 
MonitorKeyboardPowerCase
Vizio M492-b2 Logitech Wireless  Corsair HX620 NZXT Phantom White 
Mouse
Logitech Wireless 
  hide details  
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
This thread is locked  
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Programming Challenge (Out-of-Date)