Coder Social home page Coder Social logo

codevita_practice_old1's Introduction

Information

This repository contains solutions in python3 (or in CPP in emergencies) of the practice challenges published by the TCS Code Vita contest 2020. Note: the problem statement was removed fro the source.

Summary

The following items show the results on every tried challenge:

  • Problem A (Swayamvar): Presentation error
  • Problem B (Digit Pairs): Wrong answer on private cases
  • Problem C (DoleOutCadbury): Accepted!
    • DoleOutCadburyV1.py and DoleOutCadbury.cpp: are the same code but in python requires more time. In cpp it worked.
  • Problem D (Petrol Pump): Presentation error This challenge involves the partition problem (NP-hard problem).
    • petrolpump_v0.py uses the Karmarkar_Karp Heuristic (approximate solutions). But it fails in the second example. (In fact, it also contains other kinds of heuristics to the partition problem, but those fail in the second example).
    • petrolpump_v1.py uses the Complete Karmarkar_Karp algorithm (exact solution). But it fails due to time (TLE).
    • petrolPum.cpp is similar to petrolpump_v1.py (i.e. uses the Complete Karmarkar_Karp algorithm). And it succeded!
  • Problem E (Grooving Monkeys): Wrong answer on private cases.
  • Problem F (Death Battle): Accepted!

Note

Presentation error means that it is correct, but in a different "format" than required. Usually due to the line break.

Wrong answer on private cases means that it passed the public cases but not the private ones. Maybe because the statement was misunderstood.

About the problems

You can check the statement of every problem at the official web site. https://practice.tcscodevita.com/ Note: the problem statement was removed fro the source.

Important tips about the contest

  • Avoid using non standard characters such as é, ñ, etc in your code. Even in the comments.
  • Seems that c++ code is preferred over than python, because our python code that got TLE worked fine in c++.

codevita_practice_old1's People

Contributors

danielteniente avatar mr-dany avatar ztjona avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.