Giter Site home page Giter Site logo

python-coding-dojo's People

Contributors

danielpsf avatar

Watchers

 avatar

python-coding-dojo's Issues

Case converter

Description

Converter between the variety of word separators that are used in programming languages.

Acceptance criteria

snake_case to ???

  • Should have a helper function to convert from snake_case to camelCase
  • Should have a helper function to convert from snake_case to PascalCase
  • Should have a helper function to convert from snake_case to kebab-case

camelCase to ???

  • Should have a helper function to convert from camelCase to snake_case
  • Should have a helper function to convert from camelCase to PascalCase
  • Should have a helper function to convert from camelCase to kebab-case

kebab-case to ???

  • Should have a helper function to convert from kebab-case to snake_case
  • Should have a helper function to convert from kebab-case to PascalCase
  • Should have a helper function to convert from kebab-case to camelCase

Reference

Repeated character count

Description

Given a string like "potato", counts how many times a character is repeated - in the "potato" example, "T" appears twice - and return the character and how many times it has been repeated.

Acceptance criteria

GIVEN a string "potato"
WHEN the function is invoked
THEN the result should be a dict with the index "T" and the value 2

GIVEN a string "roma"
WHEN the function is invoked
THEN the result should be an empty dict

GIVEN a string "trebuchet"
WHEN the function is invoked
THEN the result should be a dict with two positions, 1st position should be indexed by "T" and have the value 2; the second index should be "E" and the value 2

GIVEN a string "perplexed"
WHEN the function is invoked
THEN the result should be a dict with two positions, 1st position should be indexed by "P" and have the value 2; the second index should be "E" and the value 3

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.