Ciel and A-B problem (why my solution is wrong?)
include <iostream>using namespace std; int main() { int A,B,p,q,dif; cin>>A >>B; dif=A-B; p=dif/10; if((dif%10)==9) q=(dif%10)-1; else q=(dif%10)+1;...
View Articleipc programming club june contest
www.hackerrank.com/june-contest we are organising a contest of 2 and half hours on 15th june at 9:00 pm ist to 11:30 pm ist on hackerrank.
View Articlesomebody pls explain the author soln for shkstr question of june challenge
link for author soln is https://s3.amazonaws.com/codechef_shared/download/Solutions/JUNE18/setter/SHKSTR.cpp
View ArticleCLFIBD - Editorial
PROBLEM LINK:PracticeContestAuthor:Avijit AgarwalTester and Editorialist:Soumik SarkarDIFFICULTY:CAKEWALKPREREQUISITES:Strings, SortingPROBLEM:Given a string $S$ find the frequency of each character in...
View ArticleNew blog for Competitive Programmers
Hey guys I have started a new blog. The first article is on dfs lowlinks . You can read it up here. Feel free to comment if anything is wrong or suggest any changes you want me to make. Also feel free...
View ArticleWRKWAYS - Editorial
Problem LinkPracticeContestAuthor:Noszály ÁronTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyMEDIUMPrerequisitesFactroisation, CombinatoricsProblemYou are given $N$ workers and each of them...
View ArticleInvitation to CodeChef June Cook-Off 2018 sponsored by ShareChat!
Hello CodeChef Community!We’re happy to present to you another fresh set of challenges for your coding skills with the June Cook-Off 2018 sponsored by ShareChat. In addition, there are some exciting...
View ArticleNew channel for Data Structures and Algorithms.
https://www.youtube.com/channel/UCC1hzIV-nvdttUHfTP4UtzA?view_as=subscriber
View ArticleKrillin is dead AGAIN Problem Code
Can i get correct value of medium using this formula: 3median = 2mean + mode.Or i have to explicitly figure out through element wise compare.
View Articlewhy am i getting wrong in the problem? each time it's saing wrong output .i...
//also i have checked by breaking the whole program in different funtions.include<stdio.h>include<stdlib.h>void fun(); int i,j,k; char el;int main(){ int t;scanf("%d",&t);// taking the...
View Articlestring similarity
Suppose we are give two strings 'x' and 'y' of same length p (1 <= p <= 200000). Each string consists of atmost 3 distinct characters. These 3 distinct characters are same in both string. I want...
View ArticleData Structures and Algorithms
Hi all, I need your help to make a list of most used data structures and algorithms along with their tutorials, implementation and some problems on them. It will be helpful to everyone in many ways. I...
View ArticlePush unique array?
Please help me in this;Let's say I have n inputs $a_1$, $a_2$, $a_3$, $a_4$, $a_5$, ..., $a_n$ I have a vector vector<unsigned long long int> vWhat should I do if I do not want to input $a_i$ in...
View Articlekrillin is dead help
Can someone please tell me where I am wrong . Here is my code. I maintained 2 segment trees for maximum query and for sum query and then I found lower bound of prefix sum for the interval where my...
View ArticleKrillin is dead AGAIN Problem
Hi, I am getting wrong answer for krillin is dead again https://www.codechef.com/viewsolution/18909176 Can anyone say me where I am getting it wrong. Thanks in advance.
View ArticleCode Chef Certification Useful for College Admission
I have passed Class X with basic knowledge of Java Code. I am willing to invest time in CodeChef competitions. Will Code Chef Certification Carry some recognition when I apply for UG Colleges (in India...
View ArticleProbable wrong testcases for the question TLG?
Hello. I think there are some serious issues with the testcases provided in TLG. The input instruction says : " The first line of the input will contain a single integer N (N ≤ 10000) indicating the...
View ArticleTLE in Fair Cut
link textcan someone explain this problem in O(n*n) running time. My solution is getting TLE.
View ArticleRUNDIR - Editorial
Problem Link:PracticeContestSetter: Alei ReyesTester: Triveni MahathaEditorialist: Triveni MahathaDifficulty:EASY MEDIUMPrerequisites:Binary Search, GreedyProblem:N students are standing at distinct...
View Articlei have solved the naive chef question n i'm getting correct answer but the...
include <stdio.h>int main() { int i,j,n,t,a,b; float p=0.0,q=0.0,r=0.0; scanf("%d",&t); for(i=0;i<t;i++) {scanf("%d%d%d",&n,&a,&b); int k=(int)malloc(nsizeof(int));...
View Article