Sort (string)

    0

    0

    Soso Geguchadze

    The following code sorts a string and displays it.

    #include<bits/stdc++.h>
    using namespace std;
    
    int main(){
      string s;cin>>s;
      sort(s.begin(),s.end());
      cout<<s;
      return 0;
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.