TGViewer
Channel Public Channel
Coding Interview Preparation

Coding Interview Preparation

@coding_interview_preparation

Coding interview preparation for software engineers

Interview questions, DSA, clean solutions.
Join ๐Ÿ‘‰ https://rebrand.ly/bigdatachannels

Buy ads: https://telega.io/c/coding_interview_preparation

DMCA: @disclosure_bds
Contact: @mldatascientist
Subscribers
5.89K
Photos
490
Videos
2
Links
174

Showing posts older than #788 ยท Back to latest

Older Posts 20 shown
Post #785 1.7K
18 Most common used Java List methods

1. add(E element) - Adds the specified element to the end of the list.
2. addAll(Collection<? extends E> c) - Adds all elements of the specified collection to the end of the list.
3. remove(Object o) - Removes the first occurrence of the specified element from the list.
4. remove(int index) - Removes the element at the specified position in the list.
5. get(int index) - Returns the element at the specified position in the list.
6. set(int index, E element) - Replaces the element at the specified position in the list with the specified element.
7. indexOf(Object o) - Returns the index of the first occurrence of the specified element in the list.
8. contains(Object o) - Returns true if the list contains the specified element.
9. size() - Returns the number of elements in the list.
10. isEmpty() - Returns true if the list contains no elements.
11. clear() - Removes all elements from the list.
12. toArray() - Returns an array containing all the elements in the list.
13. subList(int fromIndex, int toIndex) - Returns a view of the portion of the list between the specified fromIndex, inclusive, and toIndex, exclusive.
14. addAll(int index, Collection<? extends E> c) - Inserts all elements of the specified collection into the list, starting at the specified position.
15. iterator() - Returns an iterator over the elements in the list.
16. sort(Comparator<? super E> c) - Sorts the elements of the list according to the specified comparator.
17. replaceAll(UnaryOperator<E> operator) - Replaces each element of the list with the result of applying the given operator.
18. forEach(Consumer<? super E> action) - Performs the given action for each element of the list until all elements have been processed or the action throws an exception.
  • ๐Ÿ‘ 5
  • ๐Ÿ‘ 2
Post #784 1.3K

Forwarded from Programming, data science, ML - free courses by Big Data Specialist

Dear Community,

It's become challenging to balance content creation alongside my full-time job and creation of app that will give you any course for free - I am working on that after work for previous 8 months).
This is why I've assembled a team (15 people atm) to help. They're compensated from my own pocket, so I decided to occasionally post some ads to at least reduce the costs of maintaining our community a little bit.

Rest assured, any ads will be clearly labeled, and I'll give my best to filter out any scams.

Thank you for your support and understanding!

For any questions feel free to contact me directly at @mldatascientist

Warm regards,
Big Data specialist
Post #783 1.51K
Answer: No

As we have 2 == operators, so they are executed from left to right.

a == b == c
โ‡’ (a == b) == c
โ‡’ (10 == 10) == 10
โ‡’ true == 10
โ‡’ 1 == 10
โ‡’ false

Why is true converted to 1?
The rule for == says if one of the operands is boolean, it's converted to number before the comparison.
true is converted to its number value, which is 1.
  • โค 5
Post #780 2.13K
Top 5 Coding Challenge Platforms for Programmers ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿš€

1. LeetCode
   - URL: https://leetcode.com
   - Description: Enhance problem-solving skills with a vast collection of coding challenges on LeetCode.

2. HackerRank
   - URL: https://www.hackerrank.com
   - Description: HackerRank offers diverse coding challenges for algorithm, data structure, and language proficiency improvement.

3. CodeSignal
   - URL: https://codesignal.com
   - Description: CodeSignal provides coding challenges and assessments to enhance coding skills for interviews and practice.

4. Codewars
   - URL: https://www.codewars.com
   - Description: Codewars engages developers in creative problem-solving through kata challenges, fostering skill development.

5. Exercism
   - URL: https://exercism.io
   - Description: Exercism offers coding exercises in various languages, providing mentorship and community support.
Leetcode LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
  • ๐Ÿ‘ 2
Post #775 2.6K
Top 5 Coding Challenge Platforms for Programmers ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿš€

1. LeetCode
   - URL: https://leetcode.com
   - Description: Enhance problem-solving skills with a vast collection of coding challenges on LeetCode.

2. HackerRank
   - URL: https://www.hackerrank.com
   - Description: HackerRank offers diverse coding challenges for algorithm, data structure, and language proficiency improvement.

3. CodeSignal
   - URL: https://codesignal.com
   - Description: CodeSignal provides coding challenges and assessments to enhance coding skills for interviews and practice.

4. Codewars

   - URL: https://www.codewars.com
   - Description: Codewars engages developers in creative problem-solving through kata challenges, fostering skill development.

5. Exercism
   - URL: https://exercism.io
   - Description: Exercism offers coding exercises in various languages, providing mentorship and community support.

โžก๏ธ Give Reactions ๐ŸคŸ
Leetcode LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
  • โค 1
  • ๐Ÿ‘ 1
Post #774 1.9K
  • ๐Ÿ‘ 5
Post #772 2.04K
  • ๐Ÿ”ฅ 1
Post #771 1.84K
  • ๐Ÿ‘ 2
Post #769 2.18K
Explanation:
In JavaScript, the lexical scoping is used just like many other modern languages.This means a function gets executed using the scope chain which was in effect, when they are defined instead of variable scope which was in effect when they are invoked/called.
Post #767 1.73K
Explanation:
To implement file system, for separate chaining in hash-tables and to implement non-binary trees linked lists are used. Elements are accessed sequentially in linked list. Random access of elements is not an applications of linked list.
Post #764 1.8K
Explanation:
The statement typedef char (*(*arrfptr[4])())[20]; means arfptr is an array of 3 function pointer which will return an array of 20 dimension whose data type is char.
Therefore 'x' is an array of three function pointers.
Post #763 1.79K
  • ๐Ÿ‘ 1
Post #760 1.66K
Explanation:
The term "Dynamic generated graphic" refers to simulate movement, motion, or generating a specific environment using the computer. It can also be thought of as multiple plots associated with time. Hence the graphics generated in the dynamic manner from the real time data utilize the huge part of the CPU cycles.
  • ๐Ÿ‘ 1
Older posts โ†’
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’