Most Asked Strings Questions in Accenture

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.พ. 2025

ความคิดเห็น • 64

  • @shh442
    @shh442 2 หลายเดือนก่อน

    25:00 code
    def wordwisereverse(s1):
    res=''"
    s=s1.split(" ")
    for word in range(len(s)-1,-1,-1):
    res+=s[word]
    res+=" "
    return res
    s1="hi how are you"
    print(wordwisereverse(s1))

  • @jaanvirathore1850
    @jaanvirathore1850 6 หลายเดือนก่อน +7

    first coding solution in python:
    def isPalindrome(string):
    flag = False
    if string == string[::-1]:
    flag = True
    return flag

  • @_Abrar__ahmed__
    @_Abrar__ahmed__ 6 หลายเดือนก่อน +2

    def palindrome(s):
    start = 0
    end = len(s)-1;
    while(start < end):
    if(s[start]!=s[end]):
    return False
    else:
    return True
    s=input()
    print(palindrome(s))

  • @TheWalterWhite
    @TheWalterWhite 6 หลายเดือนก่อน +5

    What an explanation. Grt presentation. Thanks for guidance

  • @gopika6198
    @gopika6198 6 หลายเดือนก่อน +7

    IT WAS Very HELPFUL VIDEO ...
    Sir Could u please make one video on dynamic Programming in PYTHON

  • @preethibhuvanagiri1383
    @preethibhuvanagiri1383 4 หลายเดือนก่อน

    really helpful!!! assingnmentpublic class Main
    {
    public static void main(String[] args) {
    String s="banana";
    char a='a';
    char b='b';
    System.out.println(rep(s,a,b));

    }
    public static String rep(String s,char a,char b){
    //return s.replace(a,b);
    StringBuilder p=new StringBuilder();
    for(int i=0;i

  • @ThroughMyLenz09
    @ThroughMyLenz09 6 หลายเดือนก่อน +6

    For the question "Binary Operations On Strings" we can code in simpler way right? like the below code . as it will be short & easier to understand.
    Java Code:
    import java.util.*;
    public class Main{
    public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    String str1=sc.next();
    String str2=sc.next();
    String op=sc.next();
    String res="";
    for(int i=0;i

  • @sara-lt8pq
    @sara-lt8pq 4 หลายเดือนก่อน +1

    Sir, U R A GREAT TEACHER for us, please make videos on Capgemini campus coding. please sir.

  • @DivyaVani-ms2nr
    @DivyaVani-ms2nr 5 หลายเดือนก่อน

    for anagrams question time complexity is o(n log n) if we used sorted function

  • @NoDistractions02
    @NoDistractions02 5 หลายเดือนก่อน

    1. String Palindrome -- JAVA Code:-
    public static boolean isPalindrome(String word){
    String result ="";
    for(int i =0; i< word.length(); i++){
    char ch = word.charAt(i);
    result = ch + result;
    }
    return result.equals(word);
    }

  • @fucker9392
    @fucker9392 3 หลายเดือนก่อน

    str=input()
    res=" "
    for i in range(len(str)):
    if str[i]=='a':
    res+='b'
    else:
    res+=str[i]
    print(res)

  • @satishanny
    @satishanny 6 หลายเดือนก่อน +1

    Well explained and helpful. Thanks

  • @niteshtirkey2106
    @niteshtirkey2106 6 หลายเดือนก่อน

    Video is very helpful Thank you ..... Assignment done

  • @koppoluhanumathsrichakrava7110
    @koppoluhanumathsrichakrava7110 5 หลายเดือนก่อน

    third code with functions
    def replace_char(str,ch1,ch2):
    result=''
    for i in str:
    if i==ch1:
    result= str.replace(i,ch2)
    elif i==ch2:
    result= str.replace(i,ch1)
    else:
    result ==i
    return result
    print(replace_char("Hello, World!", "l", "a"))

    • @PrimeCoding19
      @PrimeCoding19  5 หลายเดือนก่อน

      Avoid use of inbuilt functions!

  • @anmolyadav7105
    @anmolyadav7105 3 หลายเดือนก่อน

    Will this code work for the last question? def reverseSentence(s):
    a = s.split()
    i = 0
    j = len(a) - 1

    while i < j :
    a[i],a[j] = a[j], a[i]
    i+=1
    j-=1
    return ' '.join(a)

  • @ritheshshetty759
    @ritheshshetty759 5 หลายเดือนก่อน

    In "reversing the words in a sentence" there is a small error in the code...In line 21 of your github JAVA code it should be {i - -} in the for loop while retrieving the elements from the stack. You have written i ++.

  • @bhaskarchakraborty8328
    @bhaskarchakraborty8328 4 หลายเดือนก่อน

    It is necessary that the input and output which is mentioned in the question should come exact.

  • @kapilrana4043
    @kapilrana4043 4 หลายเดือนก่อน

    public static String transformString(String str){
    char ch[] = str.toCharArray();
    for(int i=0; i

  • @satyajeetlabade3063
    @satyajeetlabade3063 6 หลายเดือนก่อน

    Reverse Words in String :
    s = 'hello world'
    lst = s.split()
    lst = lst[::-1]
    s = ' '.join(lst)
    print(s)

  • @venum3297
    @venum3297 6 หลายเดือนก่อน +1

    can we use built-in functions such as .replace in 3 qn , or will it affect the online assessment

    • @PrimeCoding19
      @PrimeCoding19  6 หลายเดือนก่อน

      Avoid using inbuilt functions. But yes in OA you can use.

  • @ajayraja9641
    @ajayraja9641 5 หลายเดือนก่อน

    Do they check time and space complexity??

  • @aryanmishra199
    @aryanmishra199 6 หลายเดือนก่อน

    Good solutions

  • @AritraChakraborty-t8x
    @AritraChakraborty-t8x 6 หลายเดือนก่อน

    Share more videos like this

  • @SuryaPrakash-mp8bz
    @SuryaPrakash-mp8bz 6 หลายเดือนก่อน

    Bro make more videos on Accenture placement

  • @kapilrana4043
    @kapilrana4043 4 หลายเดือนก่อน

    bro for ase role the coding question will they ask harder one or easier one because on youtube people are uploading hard videos

  • @shivamhajare1701
    @shivamhajare1701 6 หลายเดือนก่อน

    Thank you so much

  • @VS-mh8dk
    @VS-mh8dk 6 หลายเดือนก่อน

    4:25 sliceing lo chepithey easy ga artham avuthundhi kadha

  • @anishmalik3572
    @anishmalik3572 6 หลายเดือนก่อน

    all questions are very easy anybody who solve leetcode daily he solve these questions in just 10-15 mins

  • @Lucifer0872
    @Lucifer0872 6 หลายเดือนก่อน

    please bring mindtree interview questions

  • @SrikanthSri-hw9lo
    @SrikanthSri-hw9lo 6 หลายเดือนก่อน +1

    Can we crack the accenture ASE role just by your videos..?

  • @koppoluhanumathsrichakrava7110
    @koppoluhanumathsrichakrava7110 5 หลายเดือนก่อน +1

    Reverse a string code
    str= 'This Code Is Easy'
    x=str.split()
    y=[]
    for i in reversed(x):
    y.append(i)
    d=' '.join(y)
    print(d)

  • @ayansikari6281
    @ayansikari6281 6 หลายเดือนก่อน

    Last question is doubtful please check it once abnbnb will be the output also the question is much easier

    • @PrimeCoding19
      @PrimeCoding19  6 หลายเดือนก่อน

      You are linking this question to a Leetcode medium question.
      but it's not like that. You will not find any uneven place here.

    • @tanishapattnaik3669
      @tanishapattnaik3669 6 หลายเดือนก่อน

      yes the output should be the one you mentioned

  • @VaidehiChavan-zn6ul
    @VaidehiChavan-zn6ul 6 หลายเดือนก่อน

    are we not allowed to use string functions in code. like sort() , reverse()?

    • @PrimeCoding19
      @PrimeCoding19  6 หลายเดือนก่อน

      You can use

    • @VaidehiChavan-zn6ul
      @VaidehiChavan-zn6ul 6 หลายเดือนก่อน

      @@PrimeCoding19 #include
      #include
      #include // For reverse function
      using namespace std;
      string reverseWords(string s) {
      int n = s.length();
      int left = 0, right = 0;
      // Reverse the entire string first
      reverse(s.begin(), s.end());
      // Now reverse each word in the reversed string
      while (right < n) {
      // Skip spaces
      while (right < n && s[right] == ' ') right++;
      left = right;
      // Find the end of the word
      while (right < n && s[right] != ' ') right++;
      // Reverse the word
      reverse(s.begin() + left, s.begin() + right);
      }
      return s;
      }
      int main() {
      string s = "welcome to code";
      cout

  • @lavanya_3069
    @lavanya_3069 5 หลายเดือนก่อน

    Please provide code for last question

  • @vaishnavimaragari5144
    @vaishnavimaragari5144 5 หลายเดือนก่อน

    can we use built in functions in coding round

  • @searchx_0197
    @searchx_0197 6 หลายเดือนก่อน

    hello sir i have question that "we need to only write the logic or code from scratch during interview??, ya it will like leetcode just put the logic and submit the answer??"

    • @PrimeCoding19
      @PrimeCoding19  6 หลายเดือนก่อน

      You must write your code without syntax errors from the beginning.

  • @swatitiwari539
    @swatitiwari539 5 หลายเดือนก่อน

    is STL aloud in accenture coding test compiler??

  • @Vedantbhosale123
    @Vedantbhosale123 6 หลายเดือนก่อน

    Can we know from which website you got this questions

    • @PrimeCoding19
      @PrimeCoding19  6 หลายเดือนก่อน

      @@Vedantbhosale123 Not just one, we took questions from many websites.
      Lucky for you, you don't have to worry here and there and all the questions are ready for you!

  • @giteshdewangan4555
    @giteshdewangan4555 5 หลายเดือนก่อน

    sir next video string question ka aa gya kya ????

    • @PrimeCoding19
      @PrimeCoding19  5 หลายเดือนก่อน

      Playlist dekho 90% questions solved krdiye ha baki hojayenge. try it

    • @giteshdewangan4555
      @giteshdewangan4555 5 หลายเดือนก่อน

      @@PrimeCoding19 bhaiya string par 1 hi video dikha mujhe...

  • @Shubhamrajput_96
    @Shubhamrajput_96 6 หลายเดือนก่อน

    accenture mai javaScript mai DSA allowed hain kya ??

  • @codingDiariee
    @codingDiariee 6 หลายเดือนก่อน

    helpul. Thanks

  • @Adithya659
    @Adithya659 6 หลายเดือนก่อน

    sir This is oncampus coding questions

  • @moneshrk6262
    @moneshrk6262 4 หลายเดือนก่อน

    public class ReplaceChars {
    public static void main(String[] args) {
    String input = "banana";

    String modified = input.replace('a', '#')
    .replace('b', 'a')
    .replace('#', 'b');
    System.out.println("Original: " + input);
    System.out.println("Modified: " + modified);
    }
    }

  • @2035Nikitha
    @2035Nikitha 5 หลายเดือนก่อน

    Can we use builtin functions like sort() in accenture coding test