Day 644 - Teaching Kids Programming - Algorithm to Generate a String With Characters That Have Odd Counts

in #dtube3 years ago


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Thank you for reading ^^^^^^^^^^^^^^^

NEW! Following my Trail (Upvote or/and Downvote)

Follow me for topics of Algorithms, Blockchain and Cloud.
I am @justyy - a Steem Witness
https://steemyy.com

My Contributions/Activities

Simple STEEM Swaps

I have made the following Simple STEEM Swap Tools:

Delegation Service

Voting Power Considered in Voting Schema and Important Update of Delegation Service!

  • Delegate 1000 to justyy: Link
  • Delegate 5000 to justyy: Link
  • Delegate 10000 to justyy: Link

Support me

If you like my work, please:

  1. Delegate SP: https://steemyy.com/sp-delegate-form/?delegatee=justyy
  2. Vote @justyy as Witness: https://steemyy.com/witness-voting/?witness=justyy&action=approve
  3. Set @justyy as Proxy: https://steemyy.com/witness-voting/?witness=justyy&action=proxy
    Alternatively, you can vote witness or set proxy here: https://steemit.com/~witnesses

Steem to the Moon🚀!

  • You can swap the STEEM/SBD to ETH Ethereum steem2eth!
  • You can swap the STEEM/SBD to Tether USDT (TRC-20) via steem2usdt!
  • You can swap the STEEM/SBD to TRX (TRON) via steem2trx!
  • You can swap the STEEM/SBD to BTS (BitShares) via steem2bts!
  • Register a free STEEM account at SteemYY!
Sort:  

!ask Write an algorithm to Generate a String With Characters That Have Odd Counts



1. Create a variable to hold the string
2. Create a loop to iterate over each character in the string
3. In each iteration, check if the character count is odd
4. If so, add it to the string created in step 1
5. Return the resulting string


command: !ask is powered by witness @justyy and his contributions are: https://steemyy.com
More commands are coming!.
!ask is currently based on ChatGPT-3.5

Coin Marketplace

STEEM 0.04
TRX 0.33
JST 0.093
BTC 63064.84
ETH 1764.67
USDT 1.00
SBD 0.39