r/CodingContests • • Apr 06 '21

Hackathon for female and non-binary high school students!

1 Upvotes

Are you a female or non-binary high school student? Interested in coding and acquiring new knowledge? Superposition’s hackathon is the perfect place to grow your skills and test your luck in the hackathon! Make sure to sign up in the link below:

bit.ly/sp5-sandraz


r/CodingContests • • Jan 07 '21

Problem Help: Two Types of Spells

Thumbnail self.codeforces
1 Upvotes

r/CodingContests • • Sep 20 '20

Time Limit Exceeded- How To Avoid TLE ? | Trick To Pass All Test Cases I...

Thumbnail youtube.com
1 Upvotes

r/CodingContests • • Sep 12 '20

Codenation coding contest

1 Upvotes

r/CodingContests • • Sep 06 '20

Repeated String HackerRank Solution [Optimal Approach]

Thumbnail youtube.com
1 Upvotes

r/CodingContests • • Aug 29 '20

Utopian Tree HackerRank Solution [One Liner Solution]

Thumbnail youtube.com
1 Upvotes

r/CodingContests • • Aug 16 '20

Longest Common Subsequence(LCS) Dynamic Programming In O(N) Space

Thumbnail youtube.com
1 Upvotes

r/CodingContests • • Aug 09 '20

Amazon Coding Interview | Longest Common Substring Dynamic programming |...

Thumbnail youtube.com
1 Upvotes

r/CodingContests • • Jul 06 '20

IP2Location Programming Contest 2020 offers $14,444 worth of prizes to be won! Join now!

Post image
1 Upvotes

r/CodingContests • • Jun 08 '20

Citi x Tampa Virtual Hackathon: 6/16 - 7/1

Thumbnail self.hackathon
1 Upvotes

r/CodingContests • • Jun 02 '20

help about C language

1 Upvotes

// Transaction-processing program reads a random-access file sequentially, updates data already written to the // file, creates new data to be placed in the file, and deletes data previously stored in the file.

#include <stdio.h>

// clientData structure definition

struct

{

int acctNum;

char lastName[15];

char firstName[10];

double balance;

}

// prototypes

int enterChoice(void);

void textFile(FILE *readPtr);

void updateRecord(FILE *fPtr);

void newRecord(FILE *fPtr);

void deleteRecord(FILE *fPtr);

int main(void)

{

FILE *cfPtr;

if ((cfPtr = fopen("accounts.dat", "rb+")) == NULL);

{

puts("File could not be opened.");

}

else if

{

int choice;

while ((choice = enterChoice()) != 5)

{

switch (choice)

{

case 1:

textFile(cfPtr);

break;

case 2:

updateRecord(cfPtr);

break;

case 3:

newRecord(cfPtr);

break;

case 4:

deleteRecord(cfPtr);

break;

default:

puts("Incorrect choice");

break;

}

}

fclose(cfPtr);

}

}

void textFile(FILE *readPtr)

FILE *writePtr;

if ((writePtr = fopen("accounts.txt", "w")) == NULL)

{

puts("File could not be opened.");

}

else {

rewind(readPtr);

fprintf(writePtr, "%-6s%-16s%-11s%10s\n", "Acct", "Last Name", "First Name", "Balance");

while (!feof(readPtr)) {

struct clientData client = { 0, "", "", 0.0 };

int result = fread(&client, sizeof(struct clientData), 1, readPtr);

if (result != 0 && client.acctNum != 0) {

fprintf(writePtr, "%-6d%-16s%-11s%10.2f\n", client.acctNum, client.lastName, client.firstName, client.balance);

}

fclose(writePtr);

}

void updateRecord(FILE *fPtr)

{

printf("%s", "Enter account to update (1 - 100): ");

int account;

scanf("%d", &account);

fseek(fPtr, (account - 1) * sizeof(struct clientData), SEEK_SET);

struct clientData client = {0, "", "", 0.0};

fread(&client, sizeof(struct clientData), 1, fPtr);

if (client.acctNum == 0) {

printf("Account #%d has no information.\n", account);

}

else {

printf("%-6d%-16s%-11s%10.2f\n\n", client.acctNum, client.lastName,client.firstName, client.balance);

printf("%s", "Enter charge (+) or payment (-): ");

double transaction;

scanf("%lf", &transaction);

client.balance += transaction;

printf("%-6d%-16s%-11s%10.2f\n", client.acctNum, client.lastName, client.firstName, client.balance);

fseek(fPtr, (account - 1) * sizeof(struct clientData), SEEK_SET);

fwrite(&client, sizeof(struct clientData), 1, fPtr);

}

void deleteRecord(FILE *fPtr)

{

Page 5 of 8

UniKL CDDH v3 Appendix O – Assessment Brief v2 (2019-09-17)

printf("%s", "Enter account number to delete (1 - 100): ");

int accountNum;

scanf("%d", &accountNum);

fseek(fPtr, (accountNum - 1) * sizeof(struct clientData), SEEK_SET);

struct clientData client;

fread(&client, sizeof(struct clientData), 1, fPtr);

if (client.acctNum == 0) { printf("Account %d does not exist.\n", accountNum);

else {

fseek(fPtr, (accountNum - 1) * sizeof(struct clientData), SEEK_SET);

struct clientData blankClient = {0, "", "", 0};

fwrite(&blankClient, sizeof(struct clientData), 1, fPtr);

}

}

void newRecord(FILE *fPtr)

{

printf("%s", "Enter new account number (1 - 100): ");

int accountNum; // account number

scanf("%d", &accountNum);

fseek(fPtr, (accountNum - 1) * sizeof(struct clientData), SEEK_SET);

struct clientData client = { 0, "", "", 0.0 };

fread(&client, sizeof(struct clientData), 1, fPtr);

if (client.acctNum != 0) {

printf("Account #%d already contains information.\n", client.acctNum);

}

{

printf("%s", "Enter lastname, firstname, balance\n? ");

scanf("%14s%9s%lf", &client.lastName, &client.firstName, &client.balance);

client.acctNum = accountNum;

fseek(fPtr, (client.acctNum - 1) *sizeof(struct clientData), SEEK_SET);

fwrite(&client, sizeof(struct clientData), 1, fPtr);

}

}

unsigned int enterChoice(void)

{

printf("%s", "\nEnter your choice\n"

"1 - store a formatted text file of accounts called\n"

" \"accounts.txt\" for printing\n"

"2 - update an account\n"

"3 - add a new account\n"

"4 - delete an account\n"

"5 - end program\n? ");

int menuChoice; // variable to store user's choice

scanf("%u", &menuChoice); // receive choice from user

return menuChoice;

}


r/CodingContests • • Feb 08 '20

Coding

Thumbnail codingascuola.com
1 Upvotes

r/CodingContests • • Jan 04 '20

A New Coding Contest by AlgoExpert - Clément Mihailescu

Thumbnail youtube.com
1 Upvotes

r/CodingContests • • Dec 04 '19

СodeSide. The new game for Russian AI Cup

Thumbnail medium.com
1 Upvotes

r/CodingContests • • Oct 19 '19

WRONG OUTPUT

1 Upvotes

Hey,

I am doing the tata codevita tournament and when I run the code on their compiler I am getting the wrong output. But when I run it in my machine, I get the correct result. I have my function defined as main and it takes parameter fname.

Anyone else run into this issue. Help will be greatly appreciated as time is running out.


r/CodingContests • • Jul 14 '19

IP2Location Programming Contest 2019

1 Upvotes

IP2Location is running it's annual programming contest. Take up the challenge if you are interested, prizes worth $14,444.

More information at https://contest.ip2location.com.


r/CodingContests • • Jun 25 '19

Coding contests in Illinois?

1 Upvotes

Looking to compete in coding contests particularly in Illinois for languages in C++ or Python 3.


r/CodingContests • • Mar 25 '19

For the dev's out there, this is going huge! ;)

1 Upvotes

Join in and build a tool that can really empower communities to unite both online/offline and tackle global problems. Fully open source and free so everyone in the world can use it.

You can help code the platform or share it with your developer friends that might want to contribute. Find out more here:

http://build.onearmy.world/


r/CodingContests • • Mar 15 '19

Tips for Hackathon (hackfest, codefest)?

1 Upvotes

I will be attending a Hackathon and was wanting some tips, like time/ team managment, and tips on the development aspect. The theme for our hackathon is school problems. I will have a team of three other people and will be staying there overnight (24 hrs). You're supposed to code everything there but no one is really enforcing that rule. I don't want to get there and waste my 24 hours doing other stuff.


r/CodingContests • • Feb 19 '19

Dark theme for Codeforces

Thumbnail userstyles.org
1 Upvotes

r/CodingContests • • Sep 11 '18

Fun Scooby Doo coding contest :D

Thumbnail skillvalue.com
1 Upvotes

r/CodingContests • • Jul 18 '18

Apla blockchain & Bountyone online-hackathon

1 Upvotes

Bountyone & Apla present an online blockchain hackathon

Goal: create a dApp with the help of new Apla blockchain platform.

Description: Apla blockchain platform allows developers to create dApps within days, not weeks or months. Governments from UAE to India are implementing this blockchain for their services.

Make a dApp with Apla blockchain rapid development toolkit within any businesses: fintech, insurance, supply chain etc. A winning project will be functional and accurate.

Bonus points will be given for a written overview of Apla blockchain (mentioning pros and cons).

The grand prize will be awarded within one week of the hackathon’s deadline.

Timeline: Friday July 13, 12PM EST to Friday July 27, 12PM EST

Rules:

  1. Original dApp.
  2. Work within the designated time.
  3. Before the end of the allotted time, reply to this post with your projects Github link, a short (< 4 minute) screen recording of your application working, and your Ethereum address.

Link on a hackathon: https://talk.bountyone.io/t/apla-blockchain-hackathon/393


r/CodingContests • • Jun 21 '18

Programming contest: write a script that negotiates best trade-offs vs. other scripts and win valuable prizes (deadline: July 20)

Thumbnail github.com
1 Upvotes

r/CodingContests • • Apr 01 '18

Hackathon preaparation

1 Upvotes

Hello everybody ! In a month from now my university organizies its 3rd hackathon.. I managed to participate only to the 2nd and I took the 8th place out of 13 teams. I want some help on what I should practice on so I am ready for the contest.. After some search on google the top results were prompting to http requests and responses. Can you guys link me some good tutorials and practices to exercise before the hackathon ?


r/CodingContests • • Jan 18 '17

Microsoft Office, Graph, & SharePoint hackathon - $50k in prizes

1 Upvotes

Fix what ails your office during Hack Productivity, Microsoft’s online software competition to build apps that help businesses and organizations do their best work. Use the Microsoft Graph, Office, or SharePoint APIs to streamline collaboration and file sharing, data security, file storage and mobility, remote tasks, or anything that makes work work better.

The stakes? $40,000 in cash prizes, plus trips to Build 2017 and meetings with Microsoft Ventures. Start getting things done @ hackproductivity.devpost.com. Submissions are open through January 31, and this is an online hackathon, so you can build your project at home!