#include <stdio.h>
int main() {
int a[1000],n,i,sum=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
@Coding_human
}
for(i=0;i<n;i++)
{
if(a[i]<0)
sum++;
}
printf("%d",sum);
return 0;
}
Space world
Wipro
Telegram- @Coding_human
int main() {
int a[1000],n,i,sum=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
@Coding_human
}
for(i=0;i<n;i++)
{
if(a[i]<0)
sum++;
}
printf("%d",sum);
return 0;
}
Space world
Wipro
Telegram- @Coding_human
Please open Telegram to view this post
VIEW IN TELEGRAM
n=int(input())
a=list(map(int,input().split()))
new=[]
for i in a:
if i>0:
new.append(a.index(i))
print(len(new))
Municipal corporation code wipro.
Python 3
Telegram:- Join now
@Coding_human
@Coding_human
@Coding_human
a=list(map(int,input().split()))
new=[]
for i in a:
if i>0:
new.append(a.index(i))
print(len(new))
Municipal corporation code wipro.
Python 3
Telegram:- Join now
@Coding_human
@Coding_human
@Coding_human
TCS digital 10am slot answers π
1)2,3 1
2)suggested
3)a
4) a
5.hard pressed
6.B
7.fiasco
8.Brave
9.c
10.b
11.c
β Telegram- @Coding_human
@Coding_human
1)2,3 1
2)suggested
3)a
4) a
5.hard pressed
6.B
7.fiasco
8.Brave
9.c
10.b
11.c
β Telegram- @Coding_human
@Coding_human
Please read guys ππ
Don't give money to anyone.
We are providing free help.
Stay away from rippers.
Stay alert stay safe.
Kisi ko bhi koi paisa/rs dene ki koi zaroorat nahi h,
Hum free material provide karte hai.
Aap Rippers se door the.π
If you are ripped by someone, we are not responsible at all.
Thank you
@Coding_human
Don't give money to anyone.
We are providing free help.
Stay away from rippers.
Stay alert stay safe.
Kisi ko bhi koi paisa/rs dene ki koi zaroorat nahi h,
Hum free material provide karte hai.
Aap Rippers se door the.π
If you are ripped by someone, we are not responsible at all.
Thank you
@Coding_human
β
Test of knowledge
1.double float
2.error
3.no output(c). @Coding_human
4 when braek statement executes in
5.C
β Telegram- @Coding_human
1.double float
2.error
3.no output(c). @Coding_human
4 when braek statement executes in
5.C
β Telegram- @Coding_human
awk 'BEGIN{FS="";c=0;}
{
if(NR>1) @Coding_human
{
c= perl -pe 'map{$c{$_}++}split(//,$_);$_=[sort{$c{$b}<=>$c{$a}}keys(%c)]->[0]'
if(c<3){
print $0;
}
}
else{
print "No word to pick.";}
END{}'
Python unixβ β
TCS IRA
β Telegram- @Coding_human
@Coding_human
{
if(NR>1) @Coding_human
{
c= perl -pe 'map{$c{$_}++}split(//,$_);$_=[sort{$c{$b}<=>$c{$a}}keys(%c)]->[0]'
if(c<3){
print $0;
}
}
else{
print "No word to pick.";}
END{}'
Python unixβ β
TCS IRA
β Telegram- @Coding_human
@Coding_human
def min_step(n):
if n==0: @Coding_human
return 0;
else:
if n%2==0:
return min_step(n//2)+1
else:
return min_step(n-1)+1
n=int(input())
print(min_step(n))
Minimum Steps code
Python 3
@Coding_human
@Coding_human
β οΈ Share post in ur college and telegram Group's
if n==0: @Coding_human
return 0;
else:
if n%2==0:
return min_step(n//2)+1
else:
return min_step(n-1)+1
n=int(input())
print(min_step(n))
Minimum Steps code
Python 3
@Coding_human
@Coding_human
β οΈ Share post in ur college and telegram Group's
def min_step(n):
if n==0:
return 0;
else:
if n%2==0:
return min_step(n//2)+1 @Coding_human
else:
return min_step(n-1)+1
n=int(input())
print(min_step(n))
Minimum Steps code
Python 3
β Telegram- @Coding_human
@Coding_human
if n==0:
return 0;
else:
if n%2==0:
return min_step(n//2)+1 @Coding_human
else:
return min_step(n-1)+1
n=int(input())
print(min_step(n))
Minimum Steps code
Python 3
β Telegram- @Coding_human
@Coding_human
π―TIPS TO SUCCED AT JOB INTERVIEWS
π’Donβt confuse a job interview with a job offer. @Coding_human
π’Avoid trashing your previous jobs
π’Research the company in advance
π’Mind your body language
π’Donβt expect an offer right away
π Telegram: @Coding_human
π’Donβt confuse a job interview with a job offer. @Coding_human
π’Avoid trashing your previous jobs
π’Research the company in advance
π’Mind your body language
π’Donβt expect an offer right away
π Telegram: @Coding_human
import java.util.*;
class Main
{
static int maxWater(int[] arr, int n)
{
int left = 0;
int right = n - 1;
int l_max = 0;
int r_max = 0;
int result = 0;
while (left <= right)
{
if(r_max <= l_max)
{
result += Math.max(0, r_max-arr[right]); @Coding_human
r_max = Math.max(r_max, arr[right]);
right -= 1;
}
else
{
result += Math.max(0, l_max-arr[left]);
l_max = Math.max(l_max, arr[left]);
left += 1;
}
}
return result;
}
public static void main(String []args)
{
Scanner sc=new Scanner(System in); @Coding_human
int n=sc.nextInt();
int[] array = new int[n];
for(int i=0; i<n; i++)
{
array[i]=sc.nextInt();
}
System.out.print(maxWater(array, n));
}
}
HOW MUCH WATER WILL
ACCUMULATE CODE IN JAVA
@Coding_human
@Coding_human
β οΈ Share post in ur college and telegram Group's
class Main
{
static int maxWater(int[] arr, int n)
{
int left = 0;
int right = n - 1;
int l_max = 0;
int r_max = 0;
int result = 0;
while (left <= right)
{
if(r_max <= l_max)
{
result += Math.max(0, r_max-arr[right]); @Coding_human
r_max = Math.max(r_max, arr[right]);
right -= 1;
}
else
{
result += Math.max(0, l_max-arr[left]);
l_max = Math.max(l_max, arr[left]);
left += 1;
}
}
return result;
}
public static void main(String []args)
{
Scanner sc=new Scanner(System in); @Coding_human
int n=sc.nextInt();
int[] array = new int[n];
for(int i=0; i<n; i++)
{
array[i]=sc.nextInt();
}
System.out.print(maxWater(array, n));
}
}
HOW MUCH WATER WILL
ACCUMULATE CODE IN JAVA
@Coding_human
@Coding_human
β οΈ Share post in ur college and telegram Group's