rodneyshag / hackerrank_solutions Goto Github PK
View Code? Open in Web Editor NEW317 efficient solutions to HackerRank problems
License: MIT License
317 efficient solutions to HackerRank problems
License: MIT License
Hi,
I like your work on HackerRank problems. But I noticed a potential error in your "Java String Tokens" solution. It passes all test cases provided on HackerRank. But here's one customized test case I came up with: the string is "@@@ I am ok. How about you? ??". Maybe you are interested in looking further into it.
Thank you for your time.
If you implement Java List using arrays, you get long insert/delete. If you implement it using lists, you also get long insert/delete, so it buys you nothing. Arguing that a list is somehow better than an array in this context is simply misleading the learners. (Actually, arrays should be quicker because of HW acceleration and better locality.)
BTW, what you need here is an implicit treap. But that is not a standard collection and you should provide it yourself as a data structure for this task.
Hi @RodneyShag,
The solution for Weather Observation Station 8 in SQL is wrong.
It wasn't printing anything on the output when I checked while solving the challenge on Hackerrank.
SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '^[aeiou].*[aeiou]$';
This worked for me.
FYI, the problem has been changed at
https://www.hackerrank.com/challenges/java-priority-queue/problem
so your solution no longer works.
Your solution is wrong โ try a a b b a a a b
https://www.hackerrank.com/challenges/tag-content-extractor/forum/comments/355669
Moreover, I think empty content should be allowed.
I tried google directory generator for HankerRank solution, but no satisfactory results.
Compiler Message
Wrong Answer
Input (stdin)Download
INPUT
Expected OutputDownload
Stuart
Kristeen
Christene
Amina
Aamina
Hey @RodneyShag, I have saved most of all my Hackerank solutions and I would love to contribute them to this repo for the C++ solutions part. So can you let me know what I should do next?
why this input is not balanced . is the code working incorrectly ?
if code is working fine then please explain me why this input gives false.
({)} , {[(})] , [(]{)}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.