Swacblooms🦋

Making the Moves
Menu
  • Home
  • Motivation
  • Education
  • Programming
  • About
  • Contact
  • Privacy Policy
Home
Programming
The Pig Latin Challenge
Programming

The Pig Latin Challenge

Sammy March 27, 2019

Translate the provided string to pig latin.

Pig Latin takes the first consonant (or consonant cluster) of an English word, moves it to the end of the word and suffixes an “ay”.

If a word begins with a promifen vowel you just add “way” to the end.

Input strings are guaranteed to be English words in all lowercase.

It should suit the following tests

  • translatePigLatin("california")should return “aliforniacay“.
  • translatePigLatin("paragraphs")should return “aragraphspay“.
  • translatePigLatin("glove")should return “oveglay“.
  • translatePigLatin("algorithm")should return “algorithmway“.
  • translatePigLatin("eight")should return “eightway“.
  • Should handle words where the first vowel comes in the end of the word.Should handle words without vowels.

Your function block should be in this format and should be edited to solve some issue

Submit the link to your code in the comment section. You can use any online editor of your choice.

Prev Article
Next Article

Related Articles

Hello, in this post I would be talking about GraphQL. …

GraphQL Basic Overview

reference
Hey guys I’m back and banging and in today’s post …

React Refs the easy way

About The Author

Sammy

I am Samson Amaugo. I am a full-stack web developer and I specialize in MERN stack development

3 Comments

  1. Sam

    This is a link to mine
    https://code.sololearn.com/W8zNGh16B9BH

    March 27, 2019
  2. JeClives

    https://code.sololearn.com/cX0bqsM5jHc4/?ref=app

    That’s mine

    March 29, 2019
    • Sammy

      cool bro ..Nice one

      April 11, 2019

Leave a Reply

Cancel reply

Search Site

Recent Posts

  • Deploying a DotNet API To Railway 🚂
  • GitHub OAuth Device Flow in DotNet
  • Resumable Download in DotNet
  • Mocking the HttpClient in C#
  • MySocials DotNet CLI Tool

Categories

  • EDUCATION
  • Motivation
  • Programming
  • Uncategorized

Get more stuff

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

we respect your privacy and take protecting it seriously

RSS Swacblooms

  • Deploying a DotNet API To Railway 🚂
  • GitHub OAuth Device Flow in DotNet
  • Resumable Download in DotNet
  • Mocking the HttpClient in C#
  • MySocials DotNet CLI Tool
  • Benchmarking in C#
  • C# bang bang operator
  • Using Youtube-like hashes in DotNet 6
  • Creating Attributes and Using Attributes in C#
  • Nodejs installation via PowerShell

Swacblooms🦋

Making the Moves
Copyright © 2022 Swacblooms🦋
Swacblooms - Making the Moves