Can someone suggest what's wrong in logic
/ package codechef; // don't place package name! /import java.util.; import java.lang.; import java.io.*; import java.lang.Math;/ Name of the class has to be "Main" only if the class is public. / class...
View ArticleWA on codeforces question. Logic Error ?
https://codeforces.com/problemset/problem/118/DIn the above question, most of the people have solved it using dp but i am trying it using pnc.My approach is that first i am calculating all possible...
View ArticleNoSuchElementException for nextInt
compiling below code gives an error, can someone help me in resolving this? import java.util.*; import java.lang.*; import java.io.*; import java.util.Scanner; / Name of the class has to be "Main" only...
View ArticleNZEC ERROR WHILE USING raw_input()
def change(s1,k1,ind): for i in range(k1): if s1[ind]=='X': s1[ind]='O' else: s1[ind]='X' ind+=1 return s1 t=raw_input() t=t.upper() n=input() l=len(t) s=0 j='O'*n while s<=l: t=list(t) if 'X' in t:...
View ArticleOrder Of The Pheonix - Editorial
Problem link : Order Of PheonixAuthor : Ritesh GuptaTester : Romit KumarEditorialist : Abhishek kumarPre-Requisite : Mahonian Numbers, Range update, Prefix sum Problem : You are given an integer n. For...
View ArticleDeathly Hallows - Editorial
Problem Link : Deathly HallowsAuthor : Ritesh GuptaTester : Romit KumarEditorialist : Ritesh GuptaPre-Requisite : FFT, GCD, Seive Theory. Problem : You are given two parallel lines. The first line...
View ArticleALORA6-Editorial(ALOHOMORA)
Problem Link: ALORA6Author: Rishup_nitdgpTester: Shivansh7Editorialist: Aman0312Pre-Requisite:Segment Trees or BIT.Problem:Find the number of possible strictly increasing subsequences in the given...
View ArticleGetting started here, questions about strategy, etiquitte, etc.
Hi guys. I've just started here, I have a few questions about how I approach this place. Firstly, let me just say that wow - some of the problems here are pretty difficult, even for easy!Alright, so...
View ArticleHow to submit a solution for a problem of external ended contest??
https://www.codechef.com/COSE2019/problems/BINSTRNG I want to submit my solution for above problem for practice. But submit option is not there!! Please help!
View ArticleWrongly penalized in December Long Challenge 2018 Division 2
CodeChef Admin Recently I have got an E-mail that I will be penalized for false plagiarism. And I am going to be penalized by some 275 points.But before that don't You think you should analyze the...
View ArticleCan we find the length of the longest subarray with sum>k efficiently?
Here, 'k' can be any integer.My O(nlogn) solution is as follows :- https://ideone.com/Ff3CcOIs there any O(n) algorithm for above?Thanks.Note:- 1)I've done my research. 2)No, this problem does not...
View ArticleInvitation to RATED Contest(Div1+Div2) Enigma on Codechef, 10 January 2019
Hello, CodeChef community,Tired of searching for the perfect teammates in every competition? Want to prove your worth as a solo coder? Looking for the perfect platform to display your skills?This solo...
View ArticleJ unit test
i'm a new developer, i was trying to run J unit test but I'm getting this error message:> failed to read class file /home/teddy/ping-pong/build/classes/test/PingPongTest.class Someone with an idea...
View ArticlePrisoner of Azkaban - Editorial
Problem Link : Prisoner of AzkabanAuthor : Vikash Kumar PatelTester : Rishabh SethiEditorialist : Rohit KumarPre-Requisite : DFS and similars, DSU Problem : In this problem we need to create...
View ArticleGoblet of Fire - Editorial
problem link : Goblet of FireAuthor : Ritesh GuptaTester : Shubham GuptaEditorialist : Rajan Kumar RajPre-Requisite : Number theory Problem : You are given with a 3*3 matrix and a integer "k". You have...
View ArticleALORA2 - Editorial(ALOHOMORA)
Problem Link - LinkAuthor - Ritesh GuptaTester - Shubham GuptaEditorialist - Shubham GuptaPre-requisite - SortingProblem - You are given n numbers ,you have to find the lexicographically greatest...
View ArticleALORA4 - Editorial
problem link : Goblet of FireAuthor : Ritesh GuptaTester : Shubham GuptaEditorialist : Rajan Kumar RajPre-Requisite : Number theory Problem : You are given with a 3*3 matrix and a integer "k". You have...
View ArticleALORA7 - Editorial
Problem Link : Deathly HallowsAuthor : Ritesh GuptaTester : Romit KumarEditorialist : Ritesh GuptaPre-Requisite : FFT, GCD, Seive Theory. Problem : You are given two parallel lines. The first line...
View ArticleALORA1 - Editorial
Problem Link : LinkAuthor : Shivansh AgarwalTester : Ritesh GuptaEditorialist : Ritesh GuptaPre-Requisite : None Problem : You are given an unsorted array of integers. You have to find that all the...
View ArticleInvitation to CodeNation Hiring Contest 2019
Hi Everyone,CodeNation, Bengaluru is conducting an online hiring test on 26th January, 2019 at 5:00 PM IST.Register here: https://goo.gl/forms/7aopASH1dchGbjHE3 for the Online Test Shortlisted...
View Article